daveyoi

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: 3.4 Beta 2 – jqGridImport #85149
    daveyoi
    Participant

    Tony,

    Good call on the [CDATA] tags – I did some research for a PHP/JSON equivalent and the awnser, it seems, is PHP 5.3 and NOWDOC.

    $complete_function = <<<'EOT'

    function() { dosomething(); }

    EOT;

    $export->grid->gridComplete = $complete_function;

    Unfortunatley no 5.3 is still in Beta and not suitable for my production server. So I have a grid workaround.

    I edited grid.import.js and made your $.ajax() call non async – this way I can then use .setGridWidth to correct the grid dimensions.

    in reply to: 3.4 Beta 2 – jqGridImport #85115
    daveyoi
    Participant

    Hey Tony,

    Thanks for your reply.. I had the same thought after posting on here.. and the jsonstring is displayed as I thought..

    “loadComplete” : function () { ///blahblah; },

    in reply to: Getting Started code have problem #84638
    daveyoi
    Participant

    I would guess that your $count or $limit value is 0 – check that your query is actually returning rows.

    in reply to: How to add Columns Dynamically? #84637
    daveyoi
    Participant

    Hi Veda,

    From what I have read there is no explicit support for dynamic colnames/colmodel but you could build them using something like PHP or ASP and using $.ajax to pull the strings to the clientside.

    I am currently working on this myself and have had some success in using PHP to build the arrays required and them passing them to js for inclusion in the jqGrid definition.

    Tony would be best to confirm but I believe there is jqGrid support planned in version 3.4?

    Hope this Helps

    Dave

Viewing 4 replies - 1 through 4 (of 4 total)

Stay connected with us in your favorite flavor!