Skip to content

count

returns the number of currently visible items

function count(): number

number the count of items

var dgrid = webix.grid({
// datagrid config
});
var items = dgrid.count();

also check the next samples:

The method can be used to set the component behavior in case no data are loaded into it:

webix.grid({
ready:function(){
if(!this.count()){ // if there are no data items
this.showOverlay("<div style='margin:75px; font-size:20px;'>There's no data</div>");
}
}
});