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

[Solved] gridclient select column

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 01 Dec 2009, 10:53 PM
Hi,

My issue is when I do paging , I select 2 records from the 1st page and then when i travel to the 2nd page, I lose my selected items on first page.

So, workaround for this: in my Radgrid ItemCommand event.
Why does this event does not get fired when I select/deselect an item in the grid. So, what event of the radgrid shd i use so that when I check the checkbox /uncheck event gets fired.

if(e.commandname == radgrid.Pagecommandname)
{
gridpagerItem obItem = new GridPagerItem();
How can i access the obitem's value
}
If i use griddata item. it gives me an error telling cannot cast from gridpageritem to griddataitem? so , how do i do this

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Dec 2009, 05:15 AM
Hello Zaheka,

I guess you are using 'GridClientSelectColumn' for selecting/deselecting the items. If so, you could set the ClientSettings-EnablePostBackOnRowClick property to True for the ItemCommand event to fire when selection/deselection is made.

And here is the help document which describes how to persist the selected items on paging by storing the key values for the selected row in a Session variable.
Persisting the selected rows server-side on sorting/paging/filtering/grouping

Hope this helps,
Shinu.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or