Default grid paging doesn't work

7 posts, 0 answers
  1. Acadia
    Acadia avatar
    203 posts
    Member since:
    May 2005

    Posted 04 Nov 2008 Link to this post

    I have the AllowPaging set to true but when I trey to move to the next page the grid comes up empty.  The indicator at the bottom says there are about 100 pages.

    Doesn't the default paging take care of this at a basic level?  I'm not trying to do anything custom.

    Here's my grid code:

     

    <telerik:RadGrid ID="rgJ" runat="server" Skin="WebBlue" AutoGenerateColumns="False"

     

     

    GridLines="None" AllowPaging="True" PageSize="15" AllowFilteringByColumn="True"

     

     

    AllowSorting="True" Width="430px" Height="440px" AllowMultiRowSelection="false" PagerStyle-Mode="NextPrevAndNumeric" >

     

     

    <MasterTableView ItemStyle-Height="10px">

     

     

    <Columns>

     

     

    <telerik:GridTemplateColumn UniqueName="cbJobSelect" AllowFiltering="false">

     

     

    <ItemTemplate>

     

     

    <asp:CheckBox ID="cbJob" runat="server" OnCheckedChanged="ToggleRowSelection" Width="30px"

     

     

    AutoPostBack="True" />

     

     

    </ItemTemplate>

     

     

    </telerik:GridTemplateColumn>

     

     

    <telerik:GridBoundColumn DataField="JOB_CODE" HeaderText="Job Code" UniqueName="JOB_CODE"

     

     

    ReadOnly="True">

     

     

    <HeaderStyle HorizontalAlign="Left" Width="110px" Wrap="False" />

     

     

    <ItemStyle HorizontalAlign="Right" Width="110px" Wrap="False" />

     

     

    </telerik:GridBoundColumn>

     

     

    <telerik:GridBoundColumn DataField="JOB_NAME" HeaderText="Job Name" UniqueName="JOB_NAME"

     

     

    ReadOnly="True">

     

     

    <HeaderStyle HorizontalAlign="Left" Width="250px" Wrap="False" />

     

     

    <ItemStyle HorizontalAlign="Center" Width="250px" Wrap="False" />

     

     

    </telerik:GridBoundColumn>

     

     

    </Columns>

     

     

    <ExpandCollapseColumn>

     

     

    <HeaderStyle Width="20px" />

     

     

    </ExpandCollapseColumn>

     

     

    <RowIndicatorColumn>

     

     

    <HeaderStyle Width="20px" />

     

     

    </RowIndicatorColumn>

     

     

    </MasterTableView>

     

     

    <ClientSettings>

     

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" />

     

     

    </ClientSettings>

     

     

    <FilterMenu EnableTheming="True" Skin="WebBlue">

     

     

    <CollapseAnimation Duration="200" Type="OutQuint" />

     

     

    </FilterMenu>

    Do I need to put something in the PageIndesxChanged event?

    Thanks

  2. Acadia
    Acadia avatar
    203 posts
    Member since:
    May 2005

    Posted 04 Nov 2008 Link to this post

    nevermind I got it.  I put the Loaddata() call in my pageIndexChanged event and it seems to be working fine.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Acadia
    Acadia avatar
    203 posts
    Member since:
    May 2005

    Posted 04 Nov 2008 Link to this post

    But now it's doing the same thing when I filter and there is no Filtering event that i can see for the grid to put my LoadData function in.

    How do you handle simple filtering with a rad grid?
  5. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 04 Nov 2008 Link to this post

    Hey Acadia,

    Are you using any filtering techniques like in this online demo?  Without seeing more of the code my best guess is that it somehow isn't persisting the data when you do a postback (unless this is in an AjaxPanel or something similar with other things going on around it).
  6. Acadia
    Acadia avatar
    203 posts
    Member since:
    May 2005

    Posted 04 Nov 2008 Link to this post

    Thanks for the reply, I figured it out a minute ago I needed to use advanced databinding instead of simple.

    Thanks!
  7. ghadeer
    ghadeer avatar
    57 posts
    Member since:
    Mar 2008

    Posted 31 Dec 2008 Link to this post

    Hello

    I face the same problem....
    what you mean by loaddata()??


    please could you hepl me how you solve the problem??


    ghadeer
  8. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 31 Dec 2008 Link to this post

    Hello Ghadeer,

    Make sure that you are using AdvancedDataBinding techniques to bind your grid with data. For more information, refer to the following help document:
    Advanced data-binding

    Loaddata(), is a function used in Acadia's case to bind data to the grid, which is not required in your case, i suppose.

    Thanks
    Shinu.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017