Sorry for asking basic question, I am using Kendo UI first time.
My question is:
I have hierarchical data returned from SQL Server Common Type Expression (CTE) in below format
Id ParentId Name
1 0 Name-1 (Level 0)
2 0 Name-2 (Level 0)
3 1 Name-3 (Level 1)
4 3 Name-4 (Level 2)
and so on...
I need to bind this data to Kendo UI Tree View control. All the samples I saw in Kendo UI docs deals with hard coded data and then there is HierachicalDataSoruce examples but in those examples hierarchical Json object is manually created (using a movie example). I am sure there would be some way to bind Kendo UI controls (tree view or grid) with hierarchical data directly, just I am not getting it.
If anyone comes across similar situation or know something then please let me know how to deal with this situation.
Thanks,