Refer to the sample:
//adds userdata to the row with id=“row1”
mygrid.setUserData(“row1”,“priority”,“high”);
var userdata = mygrid.getUserData(“row1”,“priority”);//-> “high”
how can I set the “priority” dynamically, such as “high”, “low”? because it is retrieved from database and every row has different “priority”.
In my case:
Contact_grid.setUserData(id,“ContactID”,“contactid”); //contactid must be from the database, every contact has a contactid.
alert(Contact_grid.getUserData(id,“ContactID”));
Many thanks, Sematik. I just read your another reply to me. I sorted out my problem.
Most examples of dhtmlx are xml data source. I wonder if xml is the best way to feed data?
I always use render_complex_sql to return data to grid, should I convert retrieved data into xml or json? Is there any efficiency issue?