tony

Forum Replies Created

Viewing 15 replies - 2,671 through 2,685 (of 7,981 total)
  • Author
    Replies
  • in reply to: onSelectAll not firing #94006
    tony
    Keymaster

    Hello,

    You should do it like this:

    $('#grid').jqGrid('setGridParam',{onSelectAll: function(row, status) {alert(“OMG!”);}});

    Regards

    Tony

    in reply to: no data in grid #94005
    tony
    Keymaster

    Hello,

    In xmlReader set repeatitems to false. (the default is true)

    Regards

    Tony

    tony
    Keymaster

    Hello,

    Hope the answer in stackoverflow solves your problem

    Regards

    Tony

    in reply to: viewPagerButtons #94003
    tony
    Keymaster

    Hello,

    It depends which version of jqGrid do you use.

    Regards

    Tony

    in reply to: jqGrid license GPL2 vs. GPL3 #94002
    tony
    Keymaster

    Hello,

    First of all thenks for pointing this.

    jqGrid is GPL v2 licensed. The reason for this is that the home was canged to point to v3, but we do not change the link

    Now everthing is OK and corrected.

    You can see the result here:

    http://github.com/tonytomov/jqGrid/commit/365d74bd314f94baa04b49ca7b30bc7d6278fe40

    Best Regards

    and thanks again

    Tony

    in reply to: How to add color in a select field ? #94001
    tony
    Keymaster

    Hello,

    The clear way IMHO (which work for me) is as follow:

    Obtain your select via dataUrl option – the select can be something like this

    2
    3
    4

    Then define in the css:

    in reply to: “pager” don’t work #93999
    tony
    Keymaster

    Hello,

    Currently the pager does not work with local data. It will be in 3.7 releae

    Regards

    Tony

    in reply to: need help connecting with db #93998
    tony
    Keymaster

    Hello,

    Sorry this is not jqGrid related, but PHP related issue.

    Regards

    Tony

    in reply to: jqgrid and user rights. #93997
    tony
    Keymaster

    Hello,

    I do not think it is a jqGrid problem. Just a opinion

    Maybe you will need to define somethings like this

    $grid1 = <<<GRID1

    here first code

    GRID1

    $grid2 = <<<GRID2

    here second code

    GRID2;

    And the echo the $grid1 and $grid2 depending on conditions

    Regards

    Tony

    in reply to: Pager ad Navigation probelem #93996
    tony
    Keymaster

    Hello,

    In this case you will need to set the position of the navigator to the center – i.e:

    }).navGrid('#pager',{edit:false,add:false,del:false,search:false, position:'center'})….

    Regards

    Tony

    in reply to: xml data requested not showing in jqGrid #93995
    tony
    Keymaster

    Hello,

    For a complex xml structure you maybe will need to set these names in colModel, but actually it depends on how your structure is organized. By example if you point in the xmlReader

    to the right row structure and this structure contain only the names there is not need to do chnanges in colModel, but if your row contain another complex data – yes this is needed.

    Also I think that in your example repeatitems should be set to false and not true in order this to work.

    Regards

    Tony

    in reply to: XML element attribute #93994
    tony
    Keymaster

    Hello,

    Did you have read:

    XML Notes and Limitations

    in the docs here:

    http://www.trirand.com/jqgridw&#8230;..imitations

    Regards

    Tony

    in reply to: jqGrid loading customization #93993
    tony
    Keymaster

    Hello,

    Open the grid code and look at beginReq and endReq functions

    Regards

    Tony

    Here's what the code does: I bind a collection of objects to the grid the usual way. But then in afterInsertRow, I manually add a row after each bound row using addRowData containing links to manage the data in the row above.

    I now believe the problem is not with the JSON data but with a change to something else. With 3.6.1, I can break inside afterInsertRow and see that:

    rowid = an integer

    rowdata = my columns

    rowelem = the underlying object bound to the row

    But with 3.6.4, I can break inside afterInsertRow and see the same results as but only every other time. The remaining times I see that:

    rowid = an object whose properties suggests its the grid itself

    rowdata = a string with the rowid of the row I last manually added

    rowelem = the row I last manually added

    I think the difference is that in 3.6.1, the addRowData inside afterInsertRow didn't call afterInsertRow but in 3.6.4 it does. Can anyone confirm this? Can I call addRowData in a way that doesn't trigger afterInsertRow?beginReqbeginReq

    in reply to: Adding horizontal scroll #93992
    tony
    Keymaster

    Hello

    See docs. Ther is a option shrinkToFit

    Regards

    Tony

    tony
    Keymaster

    Hello,

    In order to be a clear. The data that you return from server to load GRID DATA does not contain the key, but the value.

    Hope you understand what I mean now.

    Regards

    Tony

Viewing 15 replies - 2,671 through 2,685 (of 7,981 total)

Stay connected with us in your favorite flavor!