The DataGrid under the circumstances below can perform a fetch with a start of
25. The Json
store and supporting functions ignore the start attribute if pagination is
false (in JsonQuery.js it
builds the range into the query if pagination==true). The result is that the
store returns a full set
of values starting at item 0, which the grid assumes is item 25. If you have 30
items in the store
you will see items 1..25 then items 1..5 repeated.
There is probably a bug in the DataGrid too, in that it should not be asking
for items starting at
row 25, and it may be sufficient for the Json store to throw an exception if it
receives a fetch
where start != 0 and pagination is off.
What steps will reproduce the problem?
1. Create a DataGrid with 35 items
2. Size the display so that at least 25 items are visible without scrolling.
3. Initialize the grid.
As background - the DataGrid on the onFetchBegin event tries to size the grid.
If more than 25
items fit on the display, it looks to see if this data has been fetched, and of
course it hasn't
because we are still executing the onFetchBegin. So it schedules a fetch
starting at row 25.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by pvolkaer...@gmail.com on 16 May 2010 at 7:54
Original issue reported on code.google.com by
pvolkaer...@gmail.com
on 16 May 2010 at 7:54