wired problem in gridpanel paging

  1. #1

    wired problem in gridpanel paging

    Hi,
    I am facing a weired problem while using PagingToolbar for allowing pagination in GridPanel.

    The problem is that,
    I have set the PageSize="25" in the PagingToolbar control.


    Now for the first page GridPanel is showing 23 datas. From the second page and afterwards it is showing 25 datas but for few pages(say page 13... it is again showing less number of data. Why so?????

    If i set PageSize="20" then in the first page it is showing 18 datas. For other pages also i have seen same kind of problem(pages containing less row than PageSize).Also maximum pages containning row as expected(equal to page size).

    Anyone ever seen such thing? Any idea?
  2. #2

    RE: wired problem in gridpanel paging

    Hi joydeepsen,

    I can't say I've seen that problem before. Seems really strange. Can you provide an example on how to re-create? Is this problem browser specific?


    Geoffrey McGill
    Founder
  3. #3

    RE: wired problem in gridpanel paging

    I am actually seeing the same thing - I think - I have server-side paging -



    <ext:Parameter Name="start" Value="={1}" Mode="Raw" />


    <ext:Parameter Name="limit" Value="={16}" Mode="Raw" />

    When I first load - 16 - when I page next - 20+ rows and X pages past (intermittent) - it brings back 16 again, and then back to 20
  4. #4

    RE: wired problem in gridpanel paging

    hi geoffrey,
    Thanks for your reply.
    I have found what exactly is happenning but do not know how to solve it.

    Description:

    I am binding the store from code behind and the datasource is a dataset.

    The dataset contains a table looks like below,

    ProductID ProductNumber ProductName
    315 100 P1
    315 315 p2
    320 122 p7

    As you can see my table has duplicate ProductIDs. Here comes the problem.

    Now in debug mode, before binding the store if i see the dataset value using quick watch,
    It shows the table structure and data just like above.I mean as expected.

    But after binding in the GridPanel it is showing only


    ProductID ProductNumber ProductName
    315 100 P1
    320 122 p7


    So it is not showing the row,
    315 315 p2

    This is my problem.
    When ever there is a dupliacte ProductID value, the GridPanel is showing only one of them.




    One more thing:
    If i use sqldatasource (in HTML , not in codebehind)as given in coolite example section, then the gridpanel is showing both the data.


    So, Even though the Dataset is showing the duplicate values,after binding the GridPanel is showing only 1 record for any duplicate ProductIDs.

    Now can you tell me why this is happening??If the explanation is not clear kindly let me know.




  5. #5

    RE: wired problem in gridpanel paging

    hi,
    I solved the problem but do not have the explanation.

    What i did is,
    previously my reader was like below,

     <Reader>
       <ext:JsonReader ReaderID="ProductID">
         <Fields>
         <ext:RecordField Name ="ProductID" Type="Int"></ext:RecordField>
         <ext:RecordField Name="ProductNumber"></ext:RecordField>
         <ext:RecordField Name="ProductName"></ext:RecordField>
    </Reader>
    </ext:JsonReader>
    Notice that the ProductID is set as ProductID.
    I just changed that to something else(say xyz) and now GridPanel is showing all the data.


    Any explanation?
  6. #6

    RE: wired problem in gridpanel paging

    hi frnds,

    Any explanation why so???

Similar Threads

  1. GridPanel Remote Paging Problem
    By zhangjiagege in forum 1.x Help
    Replies: 6
    Last Post: Nov 22, 2011, 8:17 AM
  2. [CLOSED] CheckBoxSelectionModel with paging in Gridpanel Problem
    By webppl in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 30, 2011, 9:08 AM
  3. Gridpanel Paging and Filter Problem.
    By Ganesh3.shirsath in forum 1.x Help
    Replies: 0
    Last Post: Feb 15, 2011, 7:16 AM
  4. [CLOSED] Problem when paging gridpanel in AjaxEvent
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 11, 2010, 11:30 AM
  5. gridpanel getSelections problem with paging
    By Lex in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 30, 2008, 1:30 PM

Posting Permissions