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

[Solved] Maintain Checkbox State While Paging Client Side

2 Answers 240 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 09 Feb 2013, 07:05 PM
Is it possible to maintain Checkbox state while paging in RadGrid Client Side?

I have a RadGrid with the following column:

<telerik:GridTemplateColumn UniqueName="CheckRows" HeaderStyle-Width="42px" >
    <HeaderTemplate>
        <asp:CheckBox ID="chkSelectAll" runat="server" />
    </HeaderTemplate>
    <ItemTemplate>
        <asp:CheckBox ID="chkRowSelect" runat="server" />
    </ItemTemplate>
</telerik:GridTemplateColumn>


I can easily maintain CheckBox state while paging Server Side but I noticed that is very slow and it would cripple what I'm trying to do considering that I have to use the CheckedChanged event of the Checkbox and add AutoPostBack="true" which would create a partial/postback, is there anyway I can maintain what Checkboxes were Checked in Client Side and then access those values from server?

I basically want to do something similar to this tutorial
http://www.telerik.com/help/aspnet/grid/gridpersistcheckboxstateingridtemplatecolumnonrebind.html
but in client side.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 11 Feb 2013, 11:57 PM
Can anyone refer me to a help article that shows how to do this?
Thank you.
0
Eyup
Telerik team
answered on 14 Feb 2013, 09:29 AM
Hello Eric,

You can implement an approach similar to the one demonstrated in the following topic:
http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html

I hope this will prove helpful.

All the best,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or