Radgrid multiselect rows

6 posts, 0 answers
  1. Ambuj
    Ambuj  avatar
    31 posts
    Member since:
    Dec 2008

    Posted 06 May 2011 Link to this post


    I am working with radgrid control, the problem description as below :-

    I have a check box as a first column in the grid and I can select multiple rows, I need to get one cell value [Id] at the server side on when I select rows and click on the save button , on the save button click event.

    Can you tell me how can i achive this??
  2. Pavlina
    Pavlina avatar
    6167 posts

    Posted 06 May 2011 Link to this post

    Hello Ambuj ,

    Go through the link below:

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Ambuj
    Ambuj  avatar
    31 posts
    Member since:
    Dec 2008

    Posted 09 May 2011 Link to this post

    Hi Pavlina,

    Thanks for the reply but I think I didn't explain my problem correctly to you

    how to get selected rows cell value at the server side from the rad grid when I have multiselect row functionality in the grid.
    like as per above I have checkbox in each row in the grid, when I select ( like 3 rows ) and click on the OK button which is on the page after the Grid , on the button click event I wanted to get all the three rows cell value?

  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 May 2011 Link to this post

    Hello Ambuj,

    You can access the cell value by looping through all the selected items. Here is a sample code.
    protected void Button1_Click(object sender, EventArgs e)
            foreach (GridDataItem item in RadGrid1.SelectedItems)
                string s = item["ColumnUniqueName"].Text;

  5. Thomas
    Thomas avatar
    1 posts
    Member since:
    Jan 2016

    Posted 27 Jan 2016 in reply to Princy Link to this post

    All rows are selected but SelectedItems is nul/nothing, why?

  6. Eyup
    Eyup avatar
    3323 posts

    Posted 01 Feb 2016 Link to this post

    Hi Thomas,

    I am sending a sample RadGrid web site to demonstrate that the mentioned collection should keep the selected items. Please run the attached application and see about the result on your side.

    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 Feedback Portal and vote to affect the priority of the items
Back to Top