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

Virtual scrollpagging is not working

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prab
Top achievements
Rank 1
Prab asked on 13 Jun 2012, 05:12 AM
hi,
i am using radgrid with vitualscrolling in my application and i am using client side databinding to avoid postpack .if radgrid contains more than two pages ,radgrid working fine but if radgrid contains two pages, i am unable to view second page..becoz scroll is not working... please give some suggestion.The following codings are using in my application.

javascript:
function RadGrid1_Command(sender, args)
{
args.set_cancel(
true);
var currentPageIndex = sender.get_masterTableView().get_currentPageIndex();
var pageSize = sender.get_masterTableView().get_pageSize();
...........................................
...........................................
..........................................
...........................................
...................
}
function updateGrid(result) {
var tableView = $find(document.getElementById("hdnradgridclientid").value).get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
function updateVirtualItemCount(result)
{
var tableView = $find(document.getElementById("hdnradgridclientid").value).get_masterTableView();
tableView.set_virtualItemCount(result);
}       


aspx page:

<telerik:RadGrid ID="RadGridAssessment" EnableViewState="false" Width="100%" runat="server"
 AllowSorting="True" Height="430px" AllowMultiRowSelection="true" AllowPaging="true"GridLines="None" BorderWidth="0" AutoGenerateColumns="true" PagerStyle-AlwaysVisible="false"Skin="Vista" OnNeedDataSource="RadGrid1_NeedDataSource">
<PagerStyle Visible="false" />
<MasterTableView Width="99%">
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true">
<ClientEvents OnCommand="RadGrid1_Command" />
<Selecting AllowRowSelect="True"></Selecting>
<Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" UseStaticHeaders="true"ScrollHeight="275px" SaveScrollPosition="True">
</
Scrolling>
</ClientSettings>
 </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Prab
Top achievements
Rank 1
answered on 13 Jun 2012, 05:26 AM
please help me to solve this problem.........
Tags
Grid
Asked by
Prab
Top achievements
Rank 1
Answers by
Prab
Top achievements
Rank 1
Share this question
or