Populating a Kendo GridView by selecting Treeview

2 posts, 1 answers
  1. Mohsin
    Mohsin avatar
    1 posts
    Member since:
    Sep 2015

    Posted 09 Oct 2015 Link to this post

    Hello, I have recently downloaded the Kendo MVC toolkit planning to get it implemented for web app. I am confused not good with Jquery. In have used HTML decode function to pass a string data to the view. Where I decode it like @Html.Raw(WebUtility.HtmlDecode(Model.GetTreeLists())) inside a div and simple pass the id to Kendotreeview like

    $("#treeData").kendoTreeView({
    });

    Now I have also a Kendo grid on a same view and I would like to populate the grid by selecting a record inside my treeview any suggestions would be appreciated..

  2. Answer
    Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 13 Oct 2015 Link to this post

    Hello Mohsin,

     

    My suggestion would be to use the Kendo UI TreeView select event, which is fired when a node is selected. 

     

    In the event handler you can find the Kendo UI Grid instance and manipulate it. Please refer to the Call Widget Methods and Bind to Widget Events article. 

     

    Regards,
    Boyan Dimitrov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top