tony

Forum Replies Created

Viewing 15 replies - 4,936 through 4,950 (of 7,981 total)
  • Author
    Replies
  • in reply to: More than one Key column #88355
    tony
    Keymaster

    Hello,

    Use the beforeSubmit submit event to set other values

    http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow

    Best Regards

    Tony

    in reply to: How to resize the last column #88354
    tony
    Keymaster

    Hello,

    Which version of jqGrid do you use? And what you mean can not be resized?

    Also for me in 3.5 all works ok.

    Regards

    Tony

    in reply to: Trying to edit and save a cell with empty content #88353
    tony
    Keymaster

    Hello,

    This is because we use setCell to store the value and if it is empty we do not set the new value.

    Now maybe you should use beforeSaveCell to do this – something like

    beforeSaveCell : function (rowid,colName, value, iRow,iCol) {

    if (value == “” ) return ” “;

    else return value;

    }

    Also some other note – if you save the value to the server check if you handle empty values.

    Best Regards

    Tony

    in reply to: Change color of a row on selection #88352
    tony
    Keymaster

    Hello,

    Please see this

    Forum

    tony
    Keymaster

    Hello Reg,

    Thanks, but I must say – I must thank you for all your job of jqGrid documentation.

    Please let me known if the solution from vinodh works for you.

    Thank you vinodh.

    Best Regards

    Tony

    in reply to: jqGrid dynamic select option #88350
    tony
    Keymaster

    Hello,

    Use formatCell event and not beforeEditCell –

    the beforeEditCell is called after we create the element (i.e we use the colmodel), but formatCell will do the job, since it is called before creation of the element.

    Regards

    Tony.

    in reply to: z-index in IE #88349
    tony
    Keymaster

    Hello,

    Yes you can control the z index do this:

    $(“#mygrid”).setColumns({… zIndex:2000..})

    or what you value want. (not sure if this will resolve the issue if you do not use jqModal)

    Best Regrds.

    Tony

    in reply to: Cell Values when select is used #88348
    tony
    Keymaster

    Hello,

    I just posted the update to the GitHub – could you please check it and let me known what is. Also I have added unformat select which should do the job.

    Regards

    Tony

    in reply to: setRowData send to server? #88347
    tony
    Keymaster

    Hello,

    setRowData saves the data to the grid and not to the server. In order to use this you should use your own ajax call to seve this to the server.

    Regards

    Tony

    in reply to: dataURL & Selects #88346
    tony
    Keymaster

    Hello,

    Could you please check in FireBug what you get from dataUrl response – i.e. what is the status of the request with this url selectlist.cfm

    after you open the form or edit the row or cell.

    Regards

    Tony

    in reply to: Grid as a subgrid problem #88345
    tony
    Keymaster

    Hello,

    How do you delete this? Do you use delGridRow? If this is the case – yes this is expected behavior.

    Also you should check if the next row is a subgrid. Below is the code (not tested) which can do this

    before deleting row with id=rowid with delGridRow do

    var delrow = $(“#mygrid”).getInd(rowid); // get the index of the row

    if(delrow) {

    // check to see if the next row has class ui-subgrid

    var rtodelete = $(“#mygrid”)[0].rows[delrow+1];

    if( rtodelete.className == “ui-subgrid” )

    $(rtodelete).remove()

    }

    and the delete the parent.

    Little complicated, but will do the job

    Regards

    Tony

    in reply to: Formatter / unformat link #88343
    tony
    Keymaster

    Hello,

    In editing modules this is done automatically. In which case and how do you try to do this?

    Best Regards

    Tony

    in reply to: datepicker ui #88342
    tony
    Keymaster

    Hello Nathan,

    Thanks for this fix. I update my post so that other can set it correct.

    Best Regards

    Tony

    tony
    Keymaster
    in reply to: Pager On Top of Grid #88340
    tony
    Keymaster

    Hello,

    Yes this is true. Currently the pager can only be at botom. There is a planed feature (method) where you can put the pager where you want.

    Regards

    Tony

Viewing 15 replies - 4,936 through 4,950 (of 7,981 total)

Stay connected with us in your favorite flavor!