Pass Text Value Selected From RadGrid

Posted by Community Admin on 03-Aug-2018 17:16

Pass Text Value Selected From RadGrid

All Replies

Posted by Community Admin on 07-Nov-2011 00:00

I have a RadGrid with one GridTemplateColumn that is populated with data using a stored procedure.  Each item in the column can be selected because I set it as a LinkButton.  I need to pass the text value that I select within the radgrid into a label.  I am trying to do this within the RadGrid1_itemCommand, but I cant seem to figure it out.  Any help would be appreciated.

Posted by Community Admin on 10-Nov-2011 00:00

Hi Aret,

 I would recommend using the RowSelected event here - this wouldn't require a button in the grid, but would directly execute postbacks on selection and you will be able to get the value from that row and pass it to the label. Please check this forum thread for more information on how to do that:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-row-select-event.aspx
Also, you can check out one of our RadGrid demos that shows such functionality implemented:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx
Let me know if you have further difficulties with that.

Best wishes,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed