Categories | Question details Back To List | ||
How to list userData in grid Hi there, Is there any way to list of userData of Row in dhtmlxGrid? Thanks in advance. Answer posted by dhxSupport on Mar 04, 2009 01:17 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 http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Storing_additional_data.html#grid_art_userdata Answer posted by Rustamjon Mukhammadaliyev on Mar 04, 2009 01:21 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 += "<b>Row ID: "+row_id+";</b> <br />"; 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 + ";<br />"; } dhxWins.window(1).attachHTMLString(str); } } |