onGroupCreated

fires when grouping is applied to the component

void onGroupCreated(number id,string value,object data);
idnumberID of the group header (parent branch);
valuestringvalue of the grouping criterion;
dataobjectcomponent data object;

Example

webix.ui({
    view:"treetable",
    on:{
        "data->onGroupCreated":function(id, value, data){
            this.item(id).value = "Year "+value;
        }
    }
});
 
grida.group({
    by:"year" //obj.value = year
});

Related samples

See also
Back to top