Opened 13 years ago

Closed 13 years ago

#9812 closed defect (invalid)

Grid store loading when sorting at the end of a grid

Reported by: vincentastek Owned by: Bryan Forbes
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.3.2
Keywords: Grid sort load Cc: [email protected]
Blocked By: Blocking:



I got the following issue with a grid :

I go to the end of my grid. In my example I have a rowsPerPage of 10, and my visible area of the grid shows 26 elements. So I think that if I now sort a column, I will see 3 new store queries to replace those 26 elements by the new ones.

I sort on a column, and then :

  • I see 3 ajax queries to load 3 first data sets of the grid (from 0 to 30). I don't thing that's "normal".
  • I also see 3 ajax queries to load the 3 data sets of my visible area BUT the scrollbar is not totally at the end, as it was before sorting, and I see for example elements 410 to 430 instead of 420 to 450. So I have to scroll again and load 10 extra rows to be at the same position I was before sorting.

I attach the example files.

Attachments (2)

test_grid3.html (1.7 KB) - added by vincentastek 13 years ago.
Html File
gaskets.json (60.0 KB) - added by vincentastek 13 years ago.
Data file

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by vincentastek

Attachment: test_grid3.html added

Html File

Changed 13 years ago by vincentastek

Attachment: gaskets.json added

Data file

comment:1 Changed 13 years ago by Nathan Toone

Resolution: invalid
Status: newclosed

Yes - this is normal behavior...because of the size of your grid, it takes 3 queries to load the required data for rendering (we render what's visible + 1 additional page).

When you sort, it renders the first three, and the last three. That is because when you sort, we have to clear the current scroll position - and then restore it.

Note: See TracTickets for help on using tickets.