I'm trying to use multiple dashboard layouts on the same page by using different ids for both dashboard and panels. The dashboards render and I'm able to move panels around, however there's 2 issues:
1. I'm not able to resize any panels from the second dashboard onwards.
2. Moving the panels throw this JS error sometimes:
dashboard-layout.js:459 Uncaught TypeError: Cannot read property 'sizeX' of undefined
at t.downHandler (dashboard-layout.js:459)
at t.downResizeHandler (dashboard-layout.js:433)
This is the sample code:
@Html.EJS().DashboardLayout("defaultLayout1").Columns(12).AllowResizing(true).ContentTemplate(@<div>
<div id="panel1" class="e-panel" data-row="0" data-col="0" data-sizeX="1" data-sizeY="1">
<span id="close" class="e-template-icon e-clear-icon"></span>
<div class="e-panel-container">
<div class="text-align">0</div>
</div>
</div>
</div>).Render()
<br />
<br />
@Html.EJS().DashboardLayout("defaultLayout2").Columns(12).AllowResizing(true).ContentTemplate(@<div>
<div id="panel2" class="e-panel" data-row="0" data-col="0" data-sizeX="10" data-sizeY="1">
<span id="close" class="e-template-icon e-clear-icon"></span>
<div class="e-panel-container">
<div class="text-align">0</div>
</div>
</div>
</div>).Render()
<br />
<br />
@Html.EJS().DashboardLayout("defaultLayout3").Columns(12).AllowResizing(true).ContentTemplate(@<div>
<div id="panel3" class="e-panel" data-row="0" data-col="0" data-sizeX="10" data-sizeY="1">
<span id="close" class="e-template-icon e-clear-icon"></span>
<div class="e-panel-container">
<div class="text-align">0</div>
</div>
</div>
</div>).Render()
Thanks in advance.