Check documentation for the latest version of dhtmlxSuite setUserData DHTMLX Docs

setUserData

sets user data for a row

void setUserData(string|number row_id,string name,mixed value);
row_idstring|numberthe id of a row, if empty, user data is set for grid (not for a row)
namestringthe name of a user data block
valuemixedthe value of a user data block

Example

//set row userdata
mygrid.setUserData("unique_rowid","someName1","new value");
//set global userdata
mygrid.setUserData("","someName1","new value");

Back to top