This is a migrated thread and some comments may be shown as answers.

Nested Grid ServerSide read value

2 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 19 Jul 2012, 09:34 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 20 Jul 2012, 05:37 AM
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.
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 20 Jul 2012, 02:30 PM
Thanks a lot for your great Help and time , work perfect!

Thanks,
Shakti
Tags
Grid
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Shakti SIngh Dulawat
Top achievements
Rank 1
Share this question
or