sort grid problem

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

sort grid problem

Post 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
User avatar
matt.denninghoff
Profound Logic Staff Member
Posts: 115
Joined: Wed Feb 10, 2016 3:53 pm
First Name: Matthew
Last Name: Denninghoff
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

Re: sort grid problem

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest