What do I lose by switching? Will i be able to add items to the datasource and the control automatically updates still? I have a need for both cases, the remote is more for the initial load only.
I've been experimenting and with the virtualization, we may just send our dataset down in hierarchial form and call it a day. I don't see any major performance issues as of yet even with a large amount of root nodes.
answered on 26 Nov 2018, 09:50 AM
As far as I can understand, you would like to load initially the nodes in the TreeView using a remote call and add new nodes to the widget dynamically at a later stage. If this is the case, you should add the new item using the DataSource.pushCreate()method. That would add the new item to the DataSource locally without trying to syncing its new state with the remote. Here you will find a small sample implementing such scenario.
As per the TreeView load on demand functionality, it is implemented to fit scenarios in which considerable amount of data could be bound to the TreeView. Keep in mind that if too many nodes are expanded and displayed in the browser simultaneously, that would result in considerable amount of DOM elements present in the browser, which may cause some delays in the rendering of the page.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.