Using the exact syntax displayed in these docs:
docs.dhtmlx.com/doku.php?id=dhtm … _templates
I cannot get userdata from JSON to be automatically added to the rows. The values keep coming back empty. I’ve exported the target grid as rg for testing:
rg.getUserData(1234, "name1");
// ""
rg.setUserData(1234, "name1", "asdf");
// undefined
rg.getUserData(1234, "name1");
// "asdf"
Using json (ugly copy-paste from debug console, trust me it’s proper, my grid is filled up)
details: Object
rows: Array[19]
0: Object
data: Array[2]
0: "12:35:51"
1: null
length: 2
__proto__: Array[0]
id: 1234
style: "color:green"
userdata: Object
name1: "ud1"
name2: "ud2"