Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > Updating Hierarchial Grids

Not answered Updating Hierarchial Grids

Feed from this thread
  • Savyo avatar

    Posted on May 14, 2012 (permalink)

    I have a hierarchical grid updating data using item command. The first grid is working like a charm, but there is issue with updation of the child grid. I guess the update command is the same for both the parent and the child grid. But it is not working. Please help me with updating data in hierarchical grid.
    Thanks in advance
    savyo

    Reply

  • Posted on May 15, 2012 (permalink)

    Hi Savyo,

    If you are updating both the Parent and the Child RadGrid in the ItemCommand event, you have to check for one more condition. Please try the following code snippet. Set the Name property for the MasterTableView as well as GridTableView.

    ASPX:
    <MasterTableView Name="Master">
    . . .
    <DetailTables>
          <telerik:GridTableView Name="Detail" >
    . . .

    C#:
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
      if(e.CommandName == RadGrid.UpdateCommandName && e.Item.OwnerTableView.Name == "Master")
      {
          // Update the First RadGrid
      }
      if(e.CommandName == RadGrid.UpdateCommandName && e.Item.OwnerTableView.Name == "Detail")
      {
          // Update the Second RadGrid
      }
    }

    Hope this helps.

    Regards,
    Shinu.

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > Updating Hierarchial Grids
Related resources for "Updating Hierarchial Grids"

ASP.NET Grid Features  |  Documentation  |  Demos  |  Step-by-step Tutorial  ]