1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Pass Text Value Selected From RadGrid

Pass Text Value Selected From RadGrid

2 posts, 0 answered
  1. Aret
    Aret avatar
    8 posts
    Registered:
    10 Oct 2011
    07 Nov 2011
    Link to this post
    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.
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    10 Nov 2011
    Link to this post
    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
2 posts, 0 answered