Forum
Sign Up
× DataGrid for Qt.C++

multiple sorted columns: saving and loading layout

8 years 5 months ago #1 by Pascal
Hi,

When saving the layout of a grid with multiple sorted columns, the order in which the column where sorted is not saved.

Suppose there are 3 columns: weight, time, date
User now sorts grid first on date, then on time.
Now restart the application and load the layout of the grid - it will be sorted on time and then date, not on date and then time.
Actually, the order of the sort is not saved by 'saveLayoutToDevice' ; only a flag 'sorted = yes' is saved in the XML.

The only workaround I have foundis to ask customer to order his columns in the same order he wants them sorted - then it works.

Is there a better way to get multiple sorted columns saved correctly so the order of sorting is respected when layout is loaded ?

Tx

P

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.117 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )