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

GridClientSelectColumn limitation

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stan
Top achievements
Rank 1
Stan asked on 09 Aug 2011, 04:10 PM
I found GridClientSelectColumn very limited if grid has pages. There are several problems with it.

1. Keeping selected checkboxes while paging. This doesn't work out of the box and I know there are workarounds posted. By the way, I believe Telerik documentation http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html should be updated, since the code simply doesn't work since the array of selected keys needs to be stored in a hidden field.
2. Selecting all checkboxes doesn't affect checkbox at the header. Again the workaround is posted, but I am wondering why isn't it part of the control? Having hundred lines of JavaScript in order to circumvent the limitations of the control, defeats the purpose of even using one.
3. And finaly the biggest roadblock is that checking the box at the header does not check items on all pages and I don't see a way around it since I couldn't find events for the header checkbox.

Maybe it is all by design since the name of the control is GridClientSelectColumn, but it sounds that if grid has pages, I will better off by doing checkboxes manually...

-Stan

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 12 Aug 2011, 08:33 AM
Hello Stan,

Your observation in the last sentence of the above post is correct. The GridClientSelectColumn is used for client-side selection only. You cannot select items that are not displayed in the current page. In fact, selection in RadGrid, by default, works for current visible items only. RadGrid only keeps track of the current visible page of data. Keeping the state of all items regardless of whether they are visible on the current page or not would, I believe, defeat the purpose of using paging for a lightweight grid. The burden of keeping additional state for all items in all pages would incur a considerable performance penalty.

Greetings,
Veli
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.

Tags
Grid
Asked by
Stan
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or