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

radgrid virtualscrollpagging issue

0 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prab
Top achievements
Rank 1
Prab asked on 12 Jun 2012, 01:07 PM
javascript:

    
function RadGrid1_Command(sender, args)
 {
           args.set_cancel(
true);
            debugger;
            
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);
        }       
 

<
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>
the above codings are using in my code....and in my pageload i set  
RadGridAssessment.PageSize = 5;
the problem is.if the grid contains 6 to 9 rows means...i am unable to view second page..but if above ten means its working fine...
and i set RadGridAssessment.PageSize = 10; ..at the time if grid contains 11 to 20 records..i am unable to view second page...
please help me 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Prab
Top achievements
Rank 1
Share this question
or