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

TreeList/TreeListDataSource custom parameters in request

2 Answers 258 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 14 Jan 2015, 12:55 AM
Hey guys,

I know the treeList is in its first public iteration and still coming up with updates and fixes.  I wanted to know if there was any way of passing other parameters when requesting the child records of a treelist.  For example:

Root
  Child1
     Child2  <-- When Making This Request is there a way to pass extra parameters such as { rootid: Root, parentid: Child1 }


I made a fiddle where I attempted to pass extra data regarding the hierarchy on expand, however I don't get my rows to display after the datasource fetches said data.

http://dojo.telerik.com/uxiXE

I'm sure there's some hook I'm missing or a function call i'm not making.  Any suggestions?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 15 Jan 2015, 03:18 PM

Hello Daniel,

 

You can define data function for the read action and pass additional parameters there. Here is an example: http://dojo.telerik.com/@rusev/oFILo

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Daniel
Top achievements
Rank 1
answered on 22 Jan 2015, 02:53 PM
Thanks a lot Nikolay, that really helped.
Tags
TreeList
Asked by
Daniel
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or