0

Is there a possibility to change the order of the columns of a listbox or grid dynamically?

asked 2021-11-05 19:09:00 +0800

softteam gravatar image softteam
130 1 8

We would like to be able to offer the users of the application the possibility to choose the order of the columns to be displayed in a grid or listbox, so that the user can customize the view of their table.

Currently we offer the possibility of being able to hide or show the columns, since we use the visible property of the listheader component etc.

Do you know if zk allows you to carry out this functionality with the grid or listbox component, and apply it permanently? If it is not currently possible, is there a plan to apply this functionality in the future?

Thank you

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-08 17:12:38 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2021-11-08 17:15:09 +0800

ZK itself doesn't store/persist changes to the UI permanently.

What you can do is persist a user's decision into your DB and then use this data to recreate a list view dynamically, next time the page is rendered.

Also there is no persistence feature planned - ZK is a front end framework. Storing/loading data is up to the underlying application.

link publish delete flag offensive edit

Comments

Yes, correct, we understand that persistence is stored by us, but the question was directed if the zk framework allows, in a transparent way for the programmer, to be able to exchange columns of a grid or listbox.

softteam ( 2021-11-09 16:29:06 +0800 )edit

ZK allows adding and removing any component dynamically. Or remove and recreate components dynamically. All you need is to implement a LOOP that does that for the listbox/grid headers and cells. Or use a listmodel/template based approach to render headers and rows dynamically.

cor3000 ( 2021-11-09 18:31:17 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2021-11-05 19:09:00 +0800

Seen: 7 times

Last updated: Nov 08 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More