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

    Hi,

    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
    Admin
    Pavlina avatar
    6084 posts

    Posted 06 May 2011 Link to this post

    Hello Ambuj ,

    Go through the link below:
    http://www.telerik.com/community/forums/aspnet-ajax/grid/client-select-column-in-radgrid.aspx

    Greetings,
    Pavlina
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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?


  5. 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.
    C#:
    protected void Button1_Click(object sender, EventArgs e)
    {
            foreach (GridDataItem item in RadGrid1.SelectedItems)
            {
                string s = item["ColumnUniqueName"].Text;
            }
      }


    Thanks,
    Princy.
  6. Thomas
    Thomas avatar
    1 posts
    Member since:
    Jan 2016

    Posted 27 Jan in reply to Princy Link to this post

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

  7. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 01 Feb 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.

    Regards,
    Eyup
    Telerik
    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
UI for ASP.NET Ajax is Ready for VS 2017