Moving of panels programatically
18 Nov 20181 minute to read
Other than drag and drop, it is possible to move the panels in Dashboard Layout programatically. This can be achieved using movePanel method. The method is invoked as follows,
movePanel(id, row, col)Where,
- id - ID of the panel which needs to be moved.
- row - New row position for moving the panel.
- col - New column position for moving the panel.
Each time a panel’s position is changed (Programatically or through UI interaction), the Dashboard Layout’s change event will be triggered.
The following sample demonstrates moving a panel programatically to a new position in the Dashboard Layout’s created event.
NOTE
You can refer to our ASP.NET Core Dashboard Layout feature tour page for its groundbreaking feature representations. You can also explore our ASP.NET Core Dashboard Layout example to know how to present and manipulate data.