Page 1 of 1

sort grid problem

Posted: Fri Jul 21, 2017 8:33 am
by CAPL_INFO
Hi,

First, on screen i sort price column (image Before)
i do click on checkbox product id 546 send to server
after that, the grid have been reorder differently on screen (image after).
Why ?
thanks a lot for responses.

Image
Image

Re: sort grid problem

Posted: Mon Jul 31, 2017 3:54 pm
by matt.denninghoff
In your Grid, the sorting happens in the client-side JavaScript code, and there are several Price records with the same value, "4,00". Before the first time you clicked sort, the grid was in one order. Then when you clicked sort, the JavaScript sorting function compared values in the Price column and moved the "4,00" values together.

You sent the screen to the server, which responded with subfile data that may or may not have been in the same order before the submit. Profound UI saw the "persist state" property, and it caused the sorting function to execute on the response grid. If the unsorted grid order before your submit was the same order that the server responded with, then the sort order should be the same after the final sort. Otherwise, if the data before the sort was in a different order than the response data, then the final sort order would often be different.