Hello,
I have rad grid of 50000 records with paging (page size 10).
Now I am selecting row from client side but it not get selected .
Page is remained on first page only
Suppose, I have selected row no. 49999 from client side then page index should be 5000, but page index remains 0.
Please give me solution it is urgent.
I have rad grid of 50000 records with paging (page size 10).
Now I am selecting row from client side but it not get selected .
Page is remained on first page only
Suppose, I have selected row no. 49999 from client side then page index should be 5000, but page index remains 0.
Please give me solution it is urgent.
following somthing I have tried
var pageindex = 0;
var grid = $find("<%=rgdImportExport.ClientID %>");
var masterTable = grid.get_masterTableView();
var p = masterTable._data.PageSize * masterTable._data.PageCount;
// for (var i = 0; i < p; i++) {
// if (i == id) {
// pageindex = i / masterTable.get_pageSize()
// break;
// }
/ /}
masterTable.selectItem(id);
masterTable.set_currentPageIndex(3)
6 Answers, 1 is accepted
0
Jayesh Goyani
Top achievements
Rank 2
answered on 12 Dec 2012, 04:43 AM
Hello,
Client side binding
server side binding
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-firecommand.html
Thanks,
Jayesh Goyani
Client side binding
masterTable.set_currentPageIndex(3);
masterTable.rebind();
server side binding
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-firecommand.html
Thanks,
Jayesh Goyani
0
Amit
Top achievements
Rank 1
answered on 12 Dec 2012, 05:00 AM
Thank you jayesh
But it is not working can you give me complete code for this
or some example Please
Reagards
Amit
But it is not working can you give me complete code for this
or some example Please
Reagards
Amit
0
Amit
Top achievements
Rank 1
answered on 12 Dec 2012, 10:23 AM
Hello ,
If there is another way please tell me
It is really not working.
Regards,
Amit
If there is another way please tell me
It is really not working.
Regards,
Amit
0
Jayesh Goyani
Top achievements
Rank 2
answered on 12 Dec 2012, 11:24 AM
Hello,
Are you used clientside binding or serverside binding?
Thanks,
Jayesh Goyani
Are you used clientside binding or serverside binding?
Thanks,
Jayesh Goyani
0
Amit
Top achievements
Rank 1
answered on 12 Dec 2012, 01:00 PM
Hello,
Are you used clientside binding or serverside binding?
Ans : serverside binding.
Regards,
Amit
0
Jayesh Goyani
Top achievements
Rank 2
answered on 13 Dec 2012, 04:51 AM
Hello,
JS
C#
ASPX
For mode info please check below link.
http://www.telerik.com/help/aspnet-ajax/grid-virtual-scroll-paging.html
Thanks,
Jayesh Goyani
JS
function
setCurrentPageIndex() {
var
pageindex = 3;
$find(
"<%= RadAjaxManager1.ClientID %>"
).ajaxRequest(pageindex);
}
C#
protected
void
RadAjaxManager1_AjaxRequest(
object
sender, AjaxRequestEventArgs e)
{
if
(!
string
.IsNullOrEmpty(e.Argument))
{
int
pageindex = 0;
int
.TryParse(e.Argument,
out
pageindex);
RadGrid1.CurrentPageIndex = pageindex;
RadGrid1.Rebind();
}
}
ASPX
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
OnAjaxRequest
=
"RadAjaxManager1_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadAjaxManager1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
For mode info please check below link.
http://www.telerik.com/help/aspnet-ajax/grid-virtual-scroll-paging.html
Thanks,
Jayesh Goyani