а

Creating properly formatted JSON from PHP for use in grid


#1

Hello,

After searching through the forum I’m still having trouble understanding the best way to make use of JSON in dhtmlxgrid. I need to use smart rending since the dataset will be large and I have a PHP page that returns JSON using json_encode($some_dataset). The problem is that I don’t think that the JSON returned by PHP is in the format expected by .load(some_rul, “json”). Am I going about this the wrong way? Is there an efficient way to get the format converted? Is there some sample PHP code I could look at?

Can anyone help with this?

Thanks


#2

Please check example at the attachment.
09_dynamic_json.zip (421 Bytes)