tony

Forum Replies Created

Viewing 15 replies - 7,606 through 7,620 (of 7,981 total)
  • Author
    Replies
  • in reply to: Is there a way to get row data while editing a row? #82675
    tony
    Keymaster

    You can use the trick when using aftersave function in saveRow method.

    Something like this:

    var myaftersave = function(id){

    var getrow = $(“#mygrid”).getRowData(id)

    // do something here

    }

    then the calling

    $(“#mygrid”).saveRow(id,tue,'','','','',myaftersave)

    The only restriction is that this fires after you save the row

    in reply to: restoreRow and hidden columns #82666
    tony
    Keymaster

    Hi again,

    If I look into the code there is some bug here. Thank you. It will be corrected. The reason is that all values (except subgrid and multi select) are pushed in saved array, but I restore only these values that are editable.

    Again Thanks

    Regards

    Tony

    in reply to: restoreRow and hidden columns #82665
    tony
    Keymaster

    Hello,

    Set this column as editable – i.e. editable:true, instead that it is hidden and the value will be restored.

    Regards

    Tony

    in reply to: Upgrading from 3.1 to 3.2rc #82664
    tony
    Keymaster

    If you have download the 3.2rc there is a readme.txt on how to upgrade. You need to add some code in css

    Regards

    Tony

    in reply to: subgrid IE column width show up with scrollbar #82663
    tony
    Keymaster

    Do you mean grid as subgrid or only subgrid?

    Tony

    in reply to: How to get primary id of master row #82662
    tony
    Keymaster

    If I understand right you use booth form edit and inline edit for one grid.

    In editRow and saveRow methods there is a parameter url. Use this parameter for these methods.

    Regards

    Tony

    tony
    Keymaster

    If you have download the 3.2rc there is a readme.txt on how to upgrade.

    You need to add come code in the used css.

    Regards

    Tony

    tony
    Keymaster

    Use loadError(xhr,st,err) event more info in this forum topic Releases

    Regards

    Tony

    in reply to: Can’t get the xml from my webserver #82653
    tony
    Keymaster

    Use loadError(xhr,st,err) event to determine if you have error from

    the server. More information you can find in this forum in topic Releases

    Regards

    Tony

    in reply to: How to get primary id of master row #82642
    tony
    Keymaster

    Ok.

    I recommend you to use a editurl option. Let suppose that the master grid has master id and detail has a detail id, then (in your case) you can use

    a beforeShowForm event (3.2 version) to do that

    Here is a piece of code:

    jQuery(“#detail”).jqGrid({…}).navGrid(“#pgdetail”,{…},

    {…}, //edit

    {…

    beforeShowForm: function(formid) {

    // we should get the id of the master here

    mid = jQuery(“#master”).getGridParam(“selrow”);

    if (mid != null ) {

    // now we can set it in editurl

    jQuery(“#detail”).setGridParam({editurl:”myurlhere.php?masterid=”+mid});

    }

    }

    ….

    Regards

    Tony

    in reply to: Sortable, reloadgrid and loadonce=true problem #82638
    tony
    Keymaster

    loadonce parameter load the data from server only once and then the processing is at client side – i.e. the datatype is set automatically to clientSide

    Refer to docs for more info

    Regards

    Tony

    in reply to: Sortable, reloadgrid and loadonce=true problem #82636
    tony
    Keymaster

    Sorry there is mistake

    the right is:

    $sortname = $_GET['sidx'];

    $sortorder = $_GET['sord'];

    in reply to: Sortable, reloadgrid and loadonce=true problem #82635
    tony
    Keymaster

    You should pass in your SQL a ORDER BY cluse to sort have effect.

    Example (php code)

    $sorcol = $_GET['sortname']; // this is taken from grid and then

    $sortorder = $_GET['sortorder'];

    $SQL = “SELECT * FROM mytable ORDER BY “.$sortcol.” “.$sortorder;

    in reply to: Sortable, reloadgrid and loadonce=true problem #82633
    tony
    Keymaster

    My simple question is?

    What you have? already constructed xml file or a data constructed from

    a SQL query?

    in reply to: jsonReader Setting root to a child #82631
    tony
    Keymaster

    DataTypes->JSON Data->JSON – somewhere in the middle of the page

    Reagrds

    Tony

Viewing 15 replies - 7,606 through 7,620 (of 7,981 total)

Stay connected with us in your favorite flavor!