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

Lazy Loading Problem to Save Selections of Telerik Grid

3 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pardha Saradhi
Top achievements
Rank 1
Pardha Saradhi asked on 26 Oct 2010, 12:38 PM
Hi,
Could you please address the following issue.

I have been using a Telerik grid which will load data on deman, i have created one stored procedure in db which will returns
data based on grid page size,start index and max rows. But when i go to first page and select 2 records and if i click on  pag2,
so i will be loading data once again and by sending page index is 2 and page start index is 11 and max rows are 10. So if i come back to page1 then i want to select previous 2 records automatically.
so please provide me the best approach to resovle this issue.

in brief my problem is.... i want to save selections of grid rows when i load data on deman(Lazy loading)
Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 26 Oct 2010, 01:47 PM
Hello Pardha,

The following documentation will help you to achieve this functionality.

Persisting the selected rows server-side on sorting/paging/filtering/grouping


-Shinu.


0
Pardha Saradhi
Top achievements
Rank 1
answered on 26 Oct 2010, 02:27 PM
Hi Shinu,

Thanks for quick reply.

but as per application requirement i should not use "GridClientSelectColumn"/select/deselect buttons   in the grid, so i am unable to find selected item .

since i am using checbox  in Template column to select/deselect rows. so i am not able to find "sender, args" to selected checkbox.

Please let me know the solution using templace column checkbox.
ex:-

<telerik:GridTemplateColumn UniqueName="ChkTmpColumn" HeaderText="Chk1" AllowFiltering="false" Resizable = "false" Reorderable = "false" >
                                                        <HeaderTemplate>                                                       
                                                            <asp:CheckBox ID="hdrChkTmpColumn" AutoPostBack="false" runat="server" ></asp:CheckBox>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>                                                          
                                                            <asp:CheckBox ID="ChkTmpColumnSearch" AutoPostBack="false" runat="server" ></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="50px"  HorizontalAlign="Center"  VerticalAlign="Middle" /> 
                                                        <ItemStyle  HorizontalAlign="Center" VerticalAlign="Middle" /> 

                                                    </telerik:GridTemplateColumn>

Thanks

0
Shinu
Top achievements
Rank 1
answered on 27 Oct 2010, 10:22 AM
Hello Pardha,

Please take alook at the following forum post which explains the same.

Check-box template column loses status after paging

Hope this helps,
-Shinu.
Tags
Grid
Asked by
Pardha Saradhi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Pardha Saradhi
Top achievements
Rank 1
Share this question
or