Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Morten Korsgaard on Nov 18, 2009 08:44
open dhtmlx forum
Grid: custom attribute in json server response header

Hi support,

Is there any way to define "custom" attributes to the json server response?
I use dynamic loading, and want to parse the total amount of a "price" column from the server side.

My json response looks like this:
{total_count:xx,pos:xx,total_amount:xx,rows:[{............

Is there any way to get the "total_amount" value ?

Answer posted by dhxSupport on Nov 19, 2009 02:27
There is no way to access global attributes like "total_count" or "pos". You can add custom attributes only for the row or cell. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:storing_additional_data#attributes