Hi,
i have a Webix Datatable on a web page, which works fine. I get that Non unique view id error when I navigate away from the page and then come back to it. Below is the code, can anyone help me in eliminating that message?
Thanks!
function ShowAppRulesGrid() {
apprulegrid = webix.ui({
container:"webixTable",
view:"datatable",
id:"sslcertificategrid",
margin:5,
css:"webix_header_border webix_data_border",
columns:[
{ id:"domain_name", header:["Domain Name", {content:"textFilter"}], width:200, sort:"int"},
{ id:"domain_names", header:["Domain Names", {content:"textFilter"}], width:200, sort:"string"},
{ id:"serial", header:["Serial", {content:"textFilter"}], width:200, sort:"string"},
{ id:"expires_at", header:["Expires", {content:"textFilter"}], width:250, sort:"string"},
{ id:"issuer", header:["Issuer", {content:"textFilter"}], width:220, sort:"string"},
{ id:"origin", header:["Origin", {content:"textFilter"}], width:250, sort:"string"},
{ id:"service_id", header:["Service ID", {content:"textFilter"}], width:200, sort:"string"},
],
autoheight:true,
minHeight:150,
resizeColumn:true,
select:"row",
hover:"myhover",
scrollY:true,
scrollX:true,
navigation:"true",
url:"api.php/records/certificates",
pager: {
view: 'pager', size:17, group:5,
container:"webixTable_Paging",
template:function(data, common){
var start = data.page * data.size;
var end = start + data.size;
if (end > data.count) {
end = start + (data.count - start);
}
var total = data.limit * data.size;
if (total > data.count) {
total = data.count
}
var html = "Record " + (start + 1) + " - " + end + " of " + total;
return common.first() + common.prev() + common.pages(data) + common.next() + common.last() + html;
},
},
on:{
onBeforeLoad:function(){
this.showOverlay("Loading...");
},
onAfterLoad:function(){
this.hideOverlay();
},
onAfterFilter:function(){
this.getPager().render();
}
},
});
} // End of ShowAppRuleGrid