Problem Implementing Master / Child RadGrids

3 posts, 0 answers
  1. ToltingColtAcres
    ToltingColtAcres avatar
    86 posts
    Member since:
    Nov 2010

    Posted 10 Apr 2011 Link to this post

    Hello, I am attempting to implement a series of Master / Child RadGrids, similar to the example located:

    In fact, I copied most of this code and modified it to work with my database structure.

    The problem I have is as follows:

    When clicking on a row in Grid #1 to select it, the child Grids #2 and #3 update correctly to reflect the appropriate data associated with Grids #1 and #2, respectively

    However, when I use the Next/Previous buttons located in Grid #1 to move between records, only the data in Grid #2 updates. The data in Grid#3 never updates.

    The online example posted above exhibits the same behavior. At first I thought that I did something wrong in my program, and have been wracking my brains for a day trying to figure out what I did wrong. Only after I went back to the online example did I see the online example exhibits the same behavior. You can see for yourself... if you go to the example, and click on one of the rows in Grid #1, the data in Grids #2/3 will update... but if you click on the nav buttons in Grid #1, only Grid #2 updates, Grid#3 remains unchanged.

    Two questions:

    a. Is this a bug in the control, and

    b. How can I get Child Grid #3 to update correctly from Grid #2's key value when the user clicks a navigation button on Master Grid #1?
  2. ToltingColtAcres
    ToltingColtAcres avatar
    86 posts
    Member since:
    Nov 2010

    Posted 12 Apr 2011 Link to this post

    bump. anyone? been messing w/ this now for a few days, have a project @ a standstill as I can't get this to function.
  3. Daniel
    Daniel avatar
    4949 posts

    Posted 18 Apr 2011 Link to this post

    Hello Michael,

    Sorry for the late reply.

    Onto your questions:

    a) No. This is an expected behavior which is related to the implementation of this demo.

    b) Please modify the code this way:
    protected void Page_PreRender(object sender, EventArgs e)
        if (RadGrid1.SelectedIndexes.Count == 0)
        if (RadGrid2.SelectedIndexes.Count == 0)
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)

    I hope this helps.

    Best regards,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top