TreeList/TreeListDataSource custom parameters in request

3 posts, 1 answers
  1. Daniel
    Daniel avatar
    11 posts
    Member since:
    Mar 2012

    Posted 13 Jan 2015 Link to this post

    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. Answer
    Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 15 Jan 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Daniel
    Daniel avatar
    11 posts
    Member since:
    Mar 2012

    Posted 22 Jan 2015 in reply to Nikolay Rusev Link to this post

    Thanks a lot Nikolay, that really helped.
Back to Top