How to list userData in grid

Hi there,



Is there any way to list of userData of Row in dhtmlxGrid?



Thanks in advance.


To ger userdata from the row use:


getUserData(row_id, name);


row_id - row id. if empty then user data is for grid (not row)


name - name of user data


To set userdata to the row:


setUserData(row_id, name, value)


row_id - row id. if empty then user data is set for grid (not row)


name - name of user data block


value - value of user data block


Please see more information here dhtmlx.com/docs/products/dhtmlxG … t_userdata

Thanks for info,

but I need list of variables in userdata. I found how to get the varables list by the following way:

function onRowSelect(row_id){
     var str = ‘’;
    str += "Row ID: “+row_id+”;
";
  if (this.UserData[row_id]){
   for(j=0;j<this.UserData[row_id].keys.length;j++){
       var var_name = this.UserData[row_id].keys[j];
       var var_value = this.UserData[row_id].values[j];
     str += var_name + ": " + var_value + ";
";
   }
  dhxWins.window(1).attachHTMLString(str);
 }
}