Nested Grid ServerSide read value

3 posts, 1 answers
  1. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 19 Jul 2012 Link to this post

    I am using this article http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx
    I am looking for a way so I can read all the selected value at server side!


    Thanks,
    Shakti
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Jul 2012 Link to this post

    Hello,

    I suppose you want to access the selected items value. Here is the sample code.
    C#:
    protected void RadGrid2_SelectedIndexChanged(object sender, EventArgs e)
    {
       foreach (GridDataItem item in RadGrid2.SelectedItems)
       {
          if (item.OwnerTableView.Name == "Master")
          {
              string value = item["UniqueName"].Text;
          }
         if (item.OwnerTableView.Name == "DetailTable1")
         {
           string value = item["UniqueName"].Text;
         }
      }
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 20 Jul 2012 Link to this post

    Thanks a lot for your great Help and time , work perfect!

    Thanks,
    Shakti
Back to Top