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

Dynamically create columns based on array

Thread ID:

Created:

Updated:

Platform:

Replies:

150101 Dec 20,2019 09:38 AM UTC Dec 30,2019 03:56 PM UTC Blazor 1
loading
Tags: TreeGrid
Dan Cheremisinov
Asked On December 20, 2019 09:38 AM UTC

public class Level
    {
        public long Id { get; set; }
        public long? ParentId { get; set; }
        public Level Parent { get; set; }
        public List<Level> Children { get; set; }
        public string Name { get; set; }
         public Dictionary<string,string> YearSummary{ get; set; }
    }

I want to dynamically create columns for YearSummary field.
Could you please suggest the proper way to do that?

Padmavathy Kamalanathan [Syncfusion]
Replied On December 30, 2019 03:56 PM UTC

Hi Dan Cheremisinov, 
  
Thanks for contacting Syncfusion support. 
  
Before we proceed with your query, we need some clarifications 
  
1. Do you need to update the column values dynamically to the Year Summary field? 
  
2. Confirm whether you are using “Year Summary” as childMapping field. 
  
3. Share the code example of TreeGrid Component. 
  
4. Share the dataSource that you have binded to the TreeGrid Component. 
  
Please provide more information regarding your requirement so that it will help us to provide the solution ASAP. 
  
Regards, 
Padmavathy Kamalanathan 


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