This is a migrated thread and some comments may be shown as answers.

Treeview - Pass multiple parameters to read child nodes

1 Answer 607 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 28 Nov 2016, 09:00 PM

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

 

 

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 30 Nov 2016, 09:44 AM
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.
Tags
TreeView
Asked by
Greg
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or