Save and load dashboard layout

Posted by: sunnyl on 2 May 2019, 9:03 am EST

    • Post Options:
    • Link

    Posted 2 May 2019, 9:03 am EST

    Hi,

    I was using dashboard layout for a desktop app mock-up. The idea is that user will create custom layout and save them then load onto their main dashboard. I saved the layout successfully (I tried both ways: use SaveLayout method with just a file name string and use SaveFileDialog to allow user to save layout wherever they want). I checked the file after saving and I believe everything was in there. However, when I tried loading the layout file, nothing appeared, the dashboard was blank, no errors or exceptions (I tried both ways: use LoadLayout method with just file name string and use OpenFileDialog to allow user to pick the file). Please help me. Thank you.

  • Posted 6 May 2019, 6:37 am EST

    Hello,

    Thank you for using the DashboardLayout control.

    The SaveLayout and LoadLayout methods save and load layout attributes such as order,id and bounds for the existing child containers/dashboard tiles. So you can only load the layout properties saved from a DashboardLayout control to the same dashboard later. For example, you can save the initial layout properties using the SaveLayout method and later use the LoadLayout method, after re-positioning or resizing the child containers, to restore the initially saved layout again.

    Therefore loading the saved layout properties in an empty dashboard i.e a dashboard that does not contain tiles/child containers will cause no effect because the dashboard does not contain the tiles/child containers whose layout attributes can be restored.

    I hope it clarifies. Please refer the given documentation link for more details:

    https://help.grapecity.com/componentone/NetHelp/DashboardLayout/webframe.html#xmlserialization.html

    Also find attached a sample(‘SaveLoadLayout.zip’) demonstrating the same. SaveLoadLayout.zip

    Please let us know in case you have any other queries.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels