This is a migrated thread and some comments may be shown as answers.

How to navigate all items in radgrid

2 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amitkumar
Top achievements
Rank 1
Amitkumar asked on 15 Dec 2009, 01:16 PM
hi all,

How to navigate all items in radgrid, even if i am using paging, following code navigate only first page(i.e. size of page is 10) items only,

foreach (GridDataItem item in rgEventResult.Items)
                        {
                            CheckBox chkSelected = item["SelectColumn"].Controls[0] as CheckBox;
                          
                            if (chkSelected != null && chkSelected.Checked)
                            {
                               
                            }
                        }

Thanks & Regards
Dharmesh



2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Dec 2009, 01:48 PM
Hi Dharmesh,

You can set the AllowPaging property to False and then loop through each items and perform the operations. After that set the AllowPaging to True then rebind the grid.

Hope this helps,
Shinu.
0
Amitkumar
Top achievements
Rank 1
answered on 16 Dec 2009, 04:17 AM
Hello Shinu,

You are right, but i check and uncheck some of the rows or items that state I will lose, if AllowPaging true or false then rebind, right? if any other idea please reply me.


Thanks & Regards
Amit
Tags
Grid
Asked by
Amitkumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Amitkumar
Top achievements
Rank 1
Share this question
or