Hi Isomorphic,
please see this modified sample (v12.0p_2020-01-07). You'll notice that:
I'm not sure which behavior is correct here, but the sorting should definitely not change while scrolling.
As it is not clear that all DB will behave the same by default w.r.t. NULLS FIRST/LAST this somehow relates to this old feature suggestion of mine.
Best regards,
Blama
please see this modified sample (v12.0p_2020-01-07). You'll notice that:
- Rows with empty unit field are at top
- Total rows are 235
- Scrolling down issues requests for next 75 rows a few times as expected
- While this happens sort does not change (as expected)
- When the last page is requested (rows 225 - 235), a resort happens and rows with null in the unit field are moved to bottom (unexpected)
- If you enable dataFetchMode: "local", the second sorting with nulls last is active directly from the start, while the data returned are again in the order where the rows with data in the column are last (unexpected)
I'm not sure which behavior is correct here, but the sorting should definitely not change while scrolling.
As it is not clear that all DB will behave the same by default w.r.t. NULLS FIRST/LAST this somehow relates to this old feature suggestion of mine.
Code:
isc.ListGrid.create({ ID: "supplyItemList", dataSource: "supplyItem", // dataFetchMode: "local", sortField: "units", canEdit: true, width: "100%", height: 550, autoFetchData: true, initialCriteria: { _constructor: "AdvancedCriteria", operator: "or", criteria: [{ fieldName: "category", operator: "equals", value: "Computer Consumables" }, { fieldName: "category", operator: "equals", value: "Canteen and Washroom Products" } ] } });
Blama
Comment