Hi
Would like to request to bind Treelist from Datatable with dynamic type
And Totreedatasocure to accomidate for dynamic datatable rather tha at row of static table.
Thank you
Hi,
The Telerik UI TreeList for ASP.NET Core can be bound to a DataTable. The only specific is that the Id and ParentId options of the data source of the widget have to be explicitly specified.
.DataSource(dataSource => dataSource
.Model(model =>
{
var id = "EmployeeID";
model.Id(id);
model.ParentId<int>("ReportsTo");
// other options
The values for the two fields can also be dynamically set if such information is present in the schema of the DataTable.
Regards,
Tsvetomir
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.