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

select checkbox losing value on postback

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 21 Jun 2010, 12:54 PM
Hi,
      How do you maintain the value of a selected checkbox in a RadGrid on postback. I have enable client selection set to true and have a rad code script block. the html is defined below. Please help

Thanks

Robert


< ID="grv_cand_shifts" runat="server" AllowFilteringByColumn="True"
                AllowPaging="True" ExportSettings-ExportOnlyData="true" ExportSettings-IgnorePaging="true"
                AllowSorting="True" GridLines="None" AutoGenerateColumns="False" Skin="<%$ AppSettings:TelerikControlSkin %>"
                ShowFooter="True" Width="100%" OnPreRender="grv_my_shifts_OnPreRender" Message="" PageSize="20">
                <MasterTableView DataKeyNames="id" Width="100%">
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />
                        <telerik:GridBoundColumn DataField="id" HeaderText="id" SortExpression="id" UniqueName="id"
                            Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="shift_date" HeaderText="Shift date" ReadOnly="True"
                            UniqueName="shift_date" DataFormatString="{0:dd/MM/yyyy}">
                
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                    <ClientEvents OnFilterMenuShowing="filterMenuShowing" OnGridCreated="getGridObject" />
                </ClientSettings>
                <ExportSettings ExportOnlyData="True" IgnorePaging="True">
                </ExportSettings>
       
                <FilterMenu OnClientShown="MenuShowing">
                </FilterMenu>
            </>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Jun 2010, 02:23 PM
Hello Robert,

I hope the following documentation will help you in achieving the required functionality.
Persisting the selected rows client-side on sorting/paging/filtering/grouping

-Shinu.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or