grouplist.add() behaves wierd

http://webix.com/snippet/c5005432
When I click Add button in the bottom, the item is shown on the group level. What can I do to add a new group to the grouplist?

scheme $group is applied only to initial data loading. To add new items you should apply add() method of TreeStore - 3 parameters:

  • data
  • index
  • parent id

Here is the example:

http://webix.com/snippet/6f83123f

refresh() method call is required in this case (we will solve this issue in the next version)

really appreciate your answer!

Hi! Looks like there’s still a problem with the current version

https://snippet.webix.com/bvgi5or6

Yep, you are right, this is a bug, thank you for the report! We will try to provide a fix in the nearest future. In the meantime, please use refresh() as a workaround.