I'd like to load all the childs elements only when i expand a particular node. What could be the proper way to do this ?
I'm guessing that i have to :
- Determine which nodes has some childs
- Create maybe a temp child node for those nodes in order to have the expansion icon.
- handle the onexpanding event, to perform an ajax call in order to retrieve the childs.
- remove the temp child node previously created and replace it with the real childs
Am i in the correct way of doing this, or there is another way ?
Thank you in advance
Load on demand functionality enables the tree grid to request the data for the child nodes from the server as the user interacts with the grid (expands a node). This approach significantly reduces the amount of data being transferred between the browser and the server.
In order to take advantage of the remote load on demand functionality the controller action responsible for processing the requests should be decorated with TreeGridDataSourceAction attribute. As you expand a row, the grid makes an Ajax call to the server.
You can refer following sample demonstrates how to use the load on demand functionality of igTreeGrid.
Please let me know I may be further assistance.
Thank you for your answer but i think there is a misunderstanding here, because you are talking about the TreeGrid and i'm talking about the igTree component !
Also i understand the purpose of the loadOnDemand feature already.
Thank you anyway.
Thank you for the update and I am sorry my mistake I provided you a sample of TreeGrid instead of igtree.
Following sample demonstrates the load on demand capabilities of the Tree control by configuring the ASP.NET MVC helper.
Please let me know I may be further assistance
i am new to ignite frame work, i want to develop igTree load on demand child nodes.
i want sample example in igTree when i am expanding node child node should be load on demand , above your are give in asp.net , i want only in jquery , html . please help to to develop igTree load on demand child nodes