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

rating with ID in grid

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
EdyTeddy-1975
Top achievements
Rank 2
EdyTeddy-1975 asked on 08 Jul 2010, 07:57 AM
I have templete in grid column which hold 3 rating controls in every row. every rating control have rate event. How can i get ID of database record for idetifiing for wich database record is rating? ID is showed in first column, ratings are in 2nd column.

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 13 Jul 2010, 08:26 AM
Hello Ed,

I suggest that you use the following code to implement the desired functionality:
protected void RadRating1_Rate(object sender, EventArgs e)
{
    GridDataItem item = (sender as RadRating).NamingContainer as GridDataItem;
    string ID = item["ID"].Text;  
}

For additional information, please take a look at the Referencing controls in grid row/edit form help topic.

Kind regards,
Mira
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
Tags
Grid
Asked by
EdyTeddy-1975
Top achievements
Rank 2
Answers by
Mira
Telerik team
Share this question
or