adds a new item to the grouplist
| obj | object | the item object |
| index | number | optional, the position that the item will be added to (zero-based numbering) |
| parentId | string | optional, the parent id |
| string | ID of the newly added item |
//inserts a new item into the parent with id='root'
grouplist.data.add({
id:"item10", value:"NewItem"
}, 0, "root" );
Grouplist items are added in the same way as Tree items. Read more in Tree Nodes Manipulations