Load y_unit from sql server asp.net core

hello i need help loading user from my database to tree timeline view


“i am using asp.net core 6”

Hello,

To load sections (in your case users), you need to specify the ServerList property of the Timelineview and specify the required data to the SchedulerAjaxData object:

var data = new SchedulerAjaxData(events);
 
data.ServerList.Add("sections", new List{
     new { key = "1", label = "Section 1" },
     new { key = "2", label = "Section 2" },
     new { key = "1", label = "Section 3" }
});

There is an article about it: