Hierachical RadGrid-Unable to display the child table using jquery.

2 posts, 0 answers
  1. Paul
    Paul avatar
    4 posts
    Member since:
    Dec 2007

    Posted 23 Jan 2013 Link to this post

    I'm working on  a Hierachical RadGrid which is enclosed in an  asp UpdatePanel, and I need to customize it in such a way that - Only the parent rows should be rendered first(the query corresponding to this fetches only the parent rows from the database), and then on the expand button click - the 'Id' corresponding to the row is send via ajax and a different query fetches the child data corresponding to only the selected row. Currently I'm invoking an external ajax request through a jquery call from ClientEvents-OnRowClick in the ClientSettings of the grid. Now I'm unable to fill data into the child table from the ajax response using jquery. Is there an easier way to go about it? That is there an inbuilt function to use 2 different queries - one to get the parent rows and the other to get the child row corresponding to the parent row that is clicked.

    Thanks in advance.
  2. Andrey
    Andrey avatar
    836 posts

    Posted 28 Jan 2013 Link to this post


    Because of the complex nature of the hierarchical structure we have three predefined ways for fetching the data for the parent and all the child levels. These are:

    • Client
    • ServerBind
    • ServerOnDemand

    By choosing one of those options you tell RadGrid how to load its data. You could find more about the different types of loading data in this help topic.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top