tony

Forum Replies Created

Viewing 15 replies - 7,546 through 7,560 (of 7,981 total)
  • Author
    Replies
  • in reply to: Passing Data back from a lookup form #82791
    tony
    Keymaster

    Reg,

    IMHO you do not need any plugin. You can use some already build in

    jqGrid functions with a little code. So look in grid.formedit.js.

    There are two usefull functions (that can be used anywhere) –

    createModal and viewModal. Look into the parameters and

    you will have idea how they can be used. Now the little piece of code.

    Let suppose that your form has id myform – then

    var fields = $(“#myform”).serializeArray();
    var griddata = {};
    jQuery.each(fields, function(i, field){

    in reply to: Force GET on Update / saveRow #82790
    tony
    Keymaster

    Currently you can do this changing the code.

    I will review this and will see if this can be updated in the upcomming

    bug fix release.

    Regards

    Tony

    in reply to: Editing with checkboxes that uses html within the cell #82789
    tony
    Keymaster

    Thank you. Will be fixed.

    Tony

    in reply to: Auto grid width #82785
    tony
    Keymaster

    Maybe in the next major release Smile

    in reply to: Changed background color of row depending from some value #82784
    tony
    Keymaster

    Have attention of two things:

    1. do not forget to set “mygrid” – this is true since if you have

    multiple grids with same id you will have trouble

    $(“#”+rowid,”#mygrid“).css(…)

    2. Be a sure that you have uniquie id's in the table

    Regards

    Thank you

    Tony

    in reply to: Changed background color of row depending from some value #82782
    tony
    Keymaster

    Yes,

    There is such way.

    afterInsertRow : function(rowid, rdata){

    if(condition here) {

    in reply to: Editing with checkboxes that uses html within the cell #82780
    tony
    Keymaster

    Just to a sure that this is the problem, could you please test with

    datatype: 'clientSide'

    Thank you

    Regards

    Tony

    in reply to: Editing with checkboxes that uses html within the cell #82778
    tony
    Keymaster

    Is this on FireFox or IE?

    in reply to: setRowData behavior #82775
    tony
    Keymaster

    But I 'm not sure if after this you will have the expected behavior.

    in reply to: setRowData behavior #82774
    tony
    Keymaster

    This is expected behavior and not a bug. Let me try to explain:

    The reason when you call this way

    setRowData(rowid,{”id”:”newid”,“Name”:”NewName”)}

    and all is ok is that these fields are not editable. As of the names of the

    methods they operate per row and not per cell.

    To work this you should set the row to be not editable after

    setRowData something like

    $(“#rowid”,”#mygrid”).attr(“editable”,”0″);

    in reply to: setRowData behavior #82772
    tony
    Keymaster

    Sorry maybe I do not understand.

    So:

    1. you call editRow;

    (some fields are not editable and only Kind is editable)

    2. you call setRowData(rowid,{”id”:”newid”,“Name”:”NewName”,

    “Kind”:”0″}) right?

    In this case the editable column Kind is overwritten with the value and it

    is no more editable – right?

    in reply to: setRowData behavior #82770
    tony
    Keymaster

    Do not see setRow instead. (Mybe you call it in EditPerson() function)

    What I try to explain is:

    If you call editRow on grid and after editRow you call setRow on same grid your data is overwritten by setRow the field has a flag editable,but with data that is overwritten – so you can anymore do edit an this until you not call

    restoreRow.

    Regards

    Tony

    in reply to: setRowData behavior #82768
    tony
    Keymaster

    Could you please publish the full code in ondblClickRow event?

    in reply to: setRowData behavior #82766
    tony
    Keymaster

    When you call setRow – before or after editRow?

    in reply to: setRowData behavior #82764
    tony
    Keymaster

    Could you please post your code here or send me to: tony at trirand.com?

    Regards

    Tony

Viewing 15 replies - 7,546 through 7,560 (of 7,981 total)

Stay connected with us in your favorite flavor!