bogus

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: improved print grid function. #100913
    bogus
    Participant

    thanx for good work!

    I've tried in Firefox, Chrome and IE. There are some problems.

    1) With big textarea fields, Firefox print all, IE – the same. Chrome loses the rightmost part.

    2) If width of columns is not set and field content is rather short – all OK. But, if width is set, and table body has long text fields – then header columns width is different from body. I suppose the clue is something like this:
    – grid consists of several tables – e.g. one for header, one for body.

    – long text fields adjust width accordinng to text size

    So, may be some kind of solution is to copy header cells with width attributes to the body table and remove the header table. This way – the header and the body columns will be the same width.

    I put this:
    var t1=$('#prt-container thead');

    in reply to: navigator problem whith json imported grid #100780
    bogus
    Participant

    bogus said:

    Hi all,

    I have strange problem:

    Girid is imported from json like this:

    $('#table1').jqGrid('jqGridImport',{imptype: 'json', impurl: 'table_json.php?table_id=38'});

    $('#table1').jqGrid('navGrid','#pagertable1',{edit:false,add:false,del:true},{},{},{'mtype':'GET'});

    $('#table1').jqGrid('inlineNav','#pagertable1',{editParams : {'mtype' : 'GET',oneditfunc:ed_table1},addParams:{addRowParams:{oneditfunc:addr_table1}}});

    And Navigator is not shown in Firefox, Chrome. In Chrome there is error in console:
    Uncaught TypeError: Cannot read property 'id' of undefined jquery.jqGrid.min.js:337.

    Strange thing, if i change code like this:

    $('#table1').jqGrid('jqGridImport',{imptype: 'json', impurl: 'table_json.php?table_id=38'});

    alert(111);

    $('#table1').jqGrid('navGrid','#pagertable1',{edit:false,add:false,del:true},{},{},{'mtype':'GET'});

    $('#table1').jqGrid('inlineNav','#pagertable1',{editParams : {'mtype' : 'GET',oneditfunc:ed_table1},addParams:{addRowParams:{oneditfunc:addr_table1}}});

    Firefox shows Navigator, and it is working.

    The same thing with othee grid methods:

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

Stay connected with us in your favorite flavor!