I have assigned a new attribute to rows tag how can I get the value from it?
I want to get data-attention value which is 9
I have assigned a new attribute to rows tag how can I get the value from it?
I want to get data-attention value which is 9
Unfortunately it’s not available to add an attribute to a “rows” tag.
You may try to use the userdata.
Here you can find a tutorial with related API:
docs.dhtmlx.com/doku.php?id=dhtm … ional_data
Thank you for reply
I tried but both retrieve empty:
1)
3
var userdata = mygrid.getUserData("",“dataattention”);
console.log(userdata);
Now it is working like charm for the others to know
function count_attentions(){
return mygrid.getUserData("",“data-attention”);
}
alert( count_attentions());