Please see the attached simplified project as reference. I'm trying to create dynamic content via the ContentTemplate element. The user should be able to select (via e.g. a listbox) what content panels to display in the dashboardlayout object and thus the panels that needs to be created are not known at initial rendering. When the user chooses a particular object to render in a new panel, the AddPanel method should be called and the ContentTemplate property should be set to a RenderFragment. Currently this is not working and I'm unsure how to approach this solution? This approach only works when I explicitly create the DashboardLayoutPanel element via html and then set the ContentTemplate property, but like I've mentioned before, the panels that needs to be created is not known before initial rendering and can therefore not be created explicitly in html. What would be the best approach to add panels and their respective content dynamically?
SAShameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 19, 2020 10:48 PM
Greetings from Syncfusion support.
We have checked your reported query for render fragment support in addPanel() method. We have already completed the implementation of this support in Dashboard Layout component, and it is now in the testing phase.This fix will be included in our Volume 4 SP1 Release, which is expected to be released at the end of January.
You can track the status of this issue through the below portal link.