setUserData

sets user data for a row

void setUserData(string|number row_id,string name,mixed value);

Parameters

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