The following example demonstrates how to move an existing dashboard item from the dashboard item group to another group in code.
In this example, the ASPxDashboardViewer loads an existing dashboard with the predefined layout from an XML file.
The following steps are performed to move the combo box placed in the bottom group into the top group.
- The required layout items and the dashboard layout group are obtained using the FindRecursive method.
- The MoveAbove method is used to move a combo box layout item above the tree view placed in the top group.
- The Group property specifies a new parent group for the combo box.
In this example, the ASPxDashboardViewer loads an existing dashboard with the predefined layout from an XML file.
The following steps are performed to move the combo box placed in the bottom group into the top group.
- The required layout items and the dashboard layout group are obtained using the FindRecursive method.
- The MoveAbove method is used to move a combo box layout item above the tree view placed in the top group.
- The Group property specifies a new parent group for the combo box.