how to get value from rows attribute

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);

3 var userdata = mygrid.getUserData("unique_rowid","dataattention"); console.log(userdata);

Now it is working like charm :slight_smile: for the others to know

9

function count_attentions(){
return mygrid.getUserData("",“data-attention”);
}

alert( count_attentions());