Categories | Question details Back To List | ||
Grid - JSON: Additional Attribute retrive issue Hello, Thanks for you quick support. I included dhtmlxgrid_json.js file and row styles and cell styles are working fine. Again, I could not able to retrieve the additional attribute/parameter value with below code. My JSON: data={rows:[ {id:100, selected:true, style:"color:red;", userdata:{"name1":"abc||123||@#$"}, data:["10", {"value":"Row 1 - Column 2", style:"color:blue"}, {"value":"Row 1 - Column 3","type":"ed"}]}, {id:2, style:"color:green;", userdata:{"name1":"xyz||abc||123||@#$"}, data:["20", {"value":"Row 2 - Column 2", style:"color:red"}, "Row 2 - Column 3"]} ]} Rertrive function: function showAttribute() { alert(mygrid.getRowAttribute(100, 'name1')); } Please let me know your thoughts. Thanks, RamaRao R. Answer posted by Alex (support) on Jan 21, 2010 03:58 Hello userdata isn't set as an attribute. Please use getUserData method to get it: function showAttribute() { |