timeriver

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • in reply to: rownumbers + remapColumns the rowid become null #98470
    timeriver
    Participant

    Okey,I found the bug.

    I set a flag value for just do remapcolumn once in the loadcomplete event, and the remapcolumn loop problem will get resloved.

    And the id null bug is clear.

    The Colmodel key position of permutation cannot be remap.

    ex: the key position is 3 ,the oringnal permutation : [0,1,2,3,4,5,6,7]

    after remap just once : [0,7,5,3,4,1,2,6], the id is correct, after reloadgrid the id is corrent.

    after remap just once : [0,3,5,7,4,1,2,6], the id is correct, after reloadgrid the id is null.

    in reply to: rownumbers + remapColumns the rowid become null #98469
    timeriver
    Participant

    Sorry,I had found the problem.

    Because I didn't put the remapcolumns into jqgrid events,so the remapcolumn will do first before jqgrid had been loaded,so it will get null id.

    But there is a new problem.

    I need after save cell and reload,I had tried many event places but can't get I want.

    If i put remapcolumn into one of the event,the permutation will remapcolumn again and again,and get wrong permutation.

    timeriver
    Participant

    kobruleht said:

    I tried but got error that block() method is undefined. How to fix ?


    the block is blockUI function, try to google how to use it.

    timeriver
    Participant

    I had done this, share with you :

    $(document).ready(function () {

    in reply to: CellEdit mode: click vs double-click #98452
    timeriver
    Participant

    tony said:

    $(“#mygrid”).jqGrid({

    cellEdit: true,

    beforeSelectRow : function(rowid) {return false;},

    ondblClickRow: function (rowid, iRow,iCol) {

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

Stay connected with us in your favorite flavor!