jean

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • in reply to: Complex JSON Question #85719
    jean
    Participant

    Hi,

    I think jqggrid wants a rather flat json file – see grid.base.js (around line 800): drows = data[ts.p.jsonReader.root]; – to me it looks like toplevel. So as I said, I think you should write a wrapper (wrapper.php):

    <?php
    $a = json_decode(file_get_contents($_GET[“filename”]),true);
    echo json_encode(array(”items”=>$a[“GSP”][“RES”][“R”][0][“MT”]));
    ?>

    and call it within your jqgrid (some parameters modified):

    url:'wrapper.php?filename=http://somesite.com/wiredjsonfile.json',
    colModel :[

    in reply to: Complex JSON Question #85717
    jean
    Participant

    Hi,

    you've an error in the json data near:

    in reply to: jqGridImport example? #85643
    jean
    Participant

    I didn't try, but maybe a

    $(”#mytable”).trigger(”reloadGrid”);

    or in your case:

    function burial() {

    jean
    Participant

    Hi Tony,

    What's your oppinion on:

    nmid = nm.match(/(\w*)/i);
    nmid = nmid.join('');

    Cheers

    Jean

    in reply to: jquery 1.3.2 and jqgrid 3.4.1. = grid breaks #85525
    jean
    Participant

    hi,

    I've the same setup and it doeas not break. Please post more details about your jqgrid setup.

    jean

    in reply to: editoptions “select” use json object #84583
    jean
    Participant

    I see. Maybe for the next major relese then – I'll have to patch the source until …

    Maybe it would be worth mentioning in the manual and tutorial, that you cannot use , ; and : in the editoptions for select.

    Cheers, jean

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

Stay connected with us in your favorite flavor!