Hi,
I'm not sure if I should choose the TreeGrid or the ListGrid to display some data, each of them has some properties that I like, but that I can't figure out how to get with the other one.
The data I want to display is a list of items, each belonging to a category, and I want to display them as belonging to that category. Now, I could either use the ListGrid with the categories as groups, or I could use a TreeGrid with the categories as folder-nodes and the items as leaf-nodes.
I really like the visual representation of the ListGrid with groups, but I have some problems with it. First, I want the user to be able to Drag-and-Drop items between the different groups, but also rearranging the items within a group as well as rearranging the groups, and I haven't found a way to do that with the ListGrid. (When you enable groups, it seems like item's positions are determined by the sorting algorithm). Besides that, I will need empty groups as where the user can drop items, and I would also like the user to be able to edit the group labels. It is beginning to sound as the TreeGrid is a better choice, right?
First, I would have to limit the user so that he can't drag one category into another, but I believe that is possible by listening to drag events. Second, the items would be displayed as a multicolumn tree, but the category/group/folders nodes does only have a name and not all the other properties that the items have. Is it possible to have nodes with different columns in a TreeGrid? Or do you have any other suggestions to solve this problem?
All suggestions are welcomed, thanks!
I'm not sure if I should choose the TreeGrid or the ListGrid to display some data, each of them has some properties that I like, but that I can't figure out how to get with the other one.
The data I want to display is a list of items, each belonging to a category, and I want to display them as belonging to that category. Now, I could either use the ListGrid with the categories as groups, or I could use a TreeGrid with the categories as folder-nodes and the items as leaf-nodes.
I really like the visual representation of the ListGrid with groups, but I have some problems with it. First, I want the user to be able to Drag-and-Drop items between the different groups, but also rearranging the items within a group as well as rearranging the groups, and I haven't found a way to do that with the ListGrid. (When you enable groups, it seems like item's positions are determined by the sorting algorithm). Besides that, I will need empty groups as where the user can drop items, and I would also like the user to be able to edit the group labels. It is beginning to sound as the TreeGrid is a better choice, right?
First, I would have to limit the user so that he can't drag one category into another, but I believe that is possible by listening to drag events. Second, the items would be displayed as a multicolumn tree, but the category/group/folders nodes does only have a name and not all the other properties that the items have. Is it possible to have nodes with different columns in a TreeGrid? Or do you have any other suggestions to solve this problem?
All suggestions are welcomed, thanks!
Comment