-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I would like to allow my users the ability to define at runtime what order the columns are in for a list or grid. Is this possible? It would be nice if it were drag and drop, but I will settle for allowing the user to use some configuration control where they can change the orders of the columns. I have searched but have not found any examples of doing so.
It's doable. In my case I've done the drag-n-drop way to allow users to swap the columns. I answered a similar post here: http://forum.zkoss.org/question/41536/listbox-column-drag-drop/
In your case, you maintain a structure to store the desired column order. You then create Listhead and ListitemRenderer that render the columns and table rows based on your order.
Asked: 2014-02-04 00:11:42 +0800
Seen: 11 times
Last updated: Feb 07 '14