Change Tree Table Common Column

Hi,

Just wanted to know if I can edit the column which is being collapsed?(1,2,3). Which changes that title from 1 to “anything”?

http://webix.com/snippet/2998bc82

Hi, editing of the grouped column is not an easy task, as you need to change the real data as well, not only the aggregated item.

After that you need to regroup the data and in the meantime, if you want to save the state of the branches (open/closed), selection, etc. you need to memorize it before grouping and restore after that.

Check the snippet, please: http://webix.com/snippet/42b758f2

@Helga Thanks for the solution, I am having a problem in adding new data into this. When I add new data( without existing data) it doesn’t group like that and it disappears the whole data upon editing. Please keep in mind data is initially blank I am just putting through a form. Thanks

Try to modify the data before adding. Instead of an empty set { } add the required object with empty values { round:"", bidder:"", bid:""}.

Then it will be included into the grouping process and either form a new group or, if there’s another item with empty round property, join the existing one.

Data should be also ungrouped before adding and grouped back after it.

Check, please: http://webix.com/snippet/08314f4e

As to the editing itself, if you edit round column and it is not the header-of-the-group node, a new group will be created. So it may be sensible to deny editing of the round column for group members.