Shift-Click bug with Paging
I have a grid that is fed by an XML Dom Document. I also implemented the paging patch. Everything else works fine, but in my regression testing I found some idiosyncratic behavior:
On page 1, Shift-click and Ctrl-click work as expected. However, on any page greater than 1 the Ctrl-Click works but the Shift-click does not.
Any ideas? Help!
Pete
December 7,
Doh! I meant to choose VERSION 1, not version 2.
Pete
December 7,
Hello:
I have the same problem: using the pagins patch provided in the download, when I try to multi-select with shift I obtain an error.
I've seen part of the problem: when I try to get the array of indexes selected, it have the correct number of components, but they have an erroneous offset.
for example: I have 35 elements, in 4 pages, 10 element each and 5 the fourth. If I select the first 20 elements (Click in the first row, go to the next page, and shift-click in the last row), the index values starts in the first index of the last page: {30,31,32,33,34,35,36...} up to the twenty values.
Obviously when I acces to the java-script array of data to retrieve my fields, it crash in the index 36, because it never exist.
I can do a workaround, obviously, when this error happens, substracting the total of the pages-1 * PageSize to all the values, but it is a little buggy for me.
I don't know if this is a strange belhaviour because I haven't configure somethig OK, or if it's a bug.
Thanks in advance.
December 12,
Hello:
I have the same problem: using the pagins patch provided in the download, when I try to multi-select with shift I obtain an error.
I've seen part of the problem: when I try to get the array of indexes selected, it have the correct number of components, but they have an erroneous offset.
for example: I have 35 elements, in 4 pages, 10 element each and 5 the fourth. If I select the first 20 elements (Click in the first row, go to the next page, and shift-click in the last row), the index values starts in the first index of the last page: {30,31,32,33,34,35,36...} up to the twenty values.
Obviously when I acces to the java-script array of data to retrieve my fields, it crash in the index 36, because it never exist.
I can do a workaround, obviously, when this error happens, substracting the total of the pages-1 * PageSize to all the values, but it is a little buggy for me.
I don't know if this is a strange belhaviour because I haven't configure somethig OK, or if it's a bug.
Thanks in advance.
Mithur
December 12,