Treeview - Pass multiple parameters to read child nodes

2 posts, 0 answers
  1. Greg
    Greg avatar
    5 posts
    Member since:
    Sep 2012

    Posted 28 Nov 2016 Link to this post

    Hi,

    I am following example the here to implement kendo ui treeview with remote data binding http://demos.telerik.com/kendo-ui/treeview/remote-data-binding

    On expanding a node I need to dynamically pass couple of parameters to get the child items. The given example works perfectly for one parameter. How can I add another parameter? The value of my second parameter comes from one of the columns of the datasource itself.

    Thanks

     

     

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    209 posts

    Posted 30 Nov 2016 Link to this post

    Hello Greg,

    We have already answered the support ticket you have submitted on the same topic. I will post here a quote of the answer here for the people that would review this thread. 

    As suggested in the TreeView with remote hierarchical datasource forum thread you could use the expand eventto save the expanded node and then use it in the dataSource's transport.read.data option to send it as an additional parameter to the server.

    If you have any questions, I would like to suggest you to continue the discussion in the support thread to avoid any duplication.

    Regards,
    Peter Milchev
    Telerik by Progress
    Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Back to Top