We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create dynamic content

Thread ID:

Created:

Updated:

Platform:

Replies:

150756 Jan 18,2020 10:07 AM UTC Jan 31,2020 05:57 AM UTC Blazor 2
loading
Tags: Dashboard Layout
Ruan
Asked On January 18, 2020 10:07 AM UTC

Hi,

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?


Thanks in advance for your assistance. 

RC

Attachment: BlazorApp_AddPanel_Dynamic_2b659e27.zip

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On January 20, 2020 06:48 AM UTC

Hi Ruan, 
 
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. 
 
 
 
We appreciate your patience until, then. 
 
Regards, 
Shameer Ali Baig S. 


Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On January 31, 2020 05:57 AM UTC

 
We are glad to announce that our Essential Studio 2019 Volume 4 Service Pack release v17.4.0.46 is rolled out and is available for download under the following link. 
 
  
In this release, we have included a support for “Dynamic add panel support for Dashboard Layout component”. 
 
For your reference, we have prepared a simple sample. Refer the sample link below. 
 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Shameer Ali Baig S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon