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
    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
    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:
    Also, you can check out one of our RadGrid demos that shows such functionality implemented:
    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