tony

Forum Replies Created

Viewing 15 replies - 2,761 through 2,775 (of 7,981 total)
  • Author
    Replies
  • in reply to: Add Record Popup(Modal) question on re-population.. #93824
    tony
    Keymaster

    Hello,

    I preffer you to read carefully the options for the add dialog. Especially you can pay attention on the followig options:

    closeAfterAdd and clearAfterAdd.

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

    Best

    in reply to: newbie in jqGrid, how add event handler on cell data? #93823
    tony
    Keymaster

    Hello,

    Welcome.

    This is a most common problem. Let me explain.

    You bind a click event to element that has a class box, but to work this the element should be present into the DOM.

    When we construct a grid – first you bind the click to such element, but these elements are not inserted into the dom snce of the ajax request.

    You have a lot of solutions.

    1. You can use the jQuery live method. More you can find in the jQuery site.

    2. You can use the gridComplete event to bind the click event to such elements.

    3. You can use afterInsertRow event ( I do not recommend this) to do the same.

    More You can find here:

    http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events

    Best Regards

    Tony

    in reply to: Help adding a row with edittype “custom” #93822
    tony
    Keymaster

    Hello,

    First of all, thanks for remind us that we should update the docs. It will be done with the next release.

    Also the purpose of custom element is to work only with single input element, and not for multiple.

    If you encloase the input element in div and etc you should get and set the value of the input tag which is enclosed in div.

    So your first assumption is not correct, since we pass the entrie element to this function.

    The 3 parameters in custom_value function are valid only in form editing – just to clarify.

    Best Regards

    Tony

    in reply to: gtting cell data on selectRow.. #93821
    tony
    Keymaster

    Hello,

    For me will be quiete easy if you explain me what you want to do.

    Best Regards

    Tony

    in reply to: load remote data upon click of button #93805
    tony
    Keymaster

    Hello,

    Create initially the grid with datatype local.

    On button click use setGridParam with datatype json or xml and trigger the grid.

    Regards

    Tony

    in reply to: Single field searching, close dialog on reset #93804
    tony
    Keymaster

    Hello,

    The option is added ( closeAfterReset ) and it is available in GitHub

    Regards

    Tony

    in reply to: Create grid with dynamic columns #93803
    tony
    Keymaster

    Hello,

    You can use GridUnload method to destroy the grid an create it again with the new columns smething like

    var colmodel1 = …

    var colmodel2 = …

    $(“#myselect”).change(function(){

    if($(this).val() == “1″) {

    $(“#mygrid”).GridUnload();

    $(“#mygrid”).jqGrid({… colModel: colmodel1,…})

    } else if( …) {

    $(“#mygrid”).GridUnload();

    $(“#mygrid”).jqGrid({… colModel: colmodel2,…})

    }

    });

    Regards

    Tony

    in reply to: Tabbing problem after adjusting columns #93802
    tony
    Keymaster

    Hello,

    If you upgrade (just replace grid.setcolumns.js ) do you have the same problem? There was a lot of fixes in this module.

    Regards

    Tony

    in reply to: ‘$.jgrid.formatter.integer’ is null or not an object #93801
    tony
    Keymaster

    Hello,

    IMHO your problem is in the response. Maybe you missed some tags like page, total and etc.

    http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data

    Regards

    Tony

    in reply to: Master/Detail editing row issue #93800
    tony
    Keymaster

    Hello,

    Also is this url 'save_alert_gp_parm.html' valid. If you do not wnat to post to server when inline edit is used you can set into the url 'clientArray'.

    See docs.

    Regards

    Tony

    tony
    Keymaster

    Hello,

    This is not possible. Tab is possible only whe you edit a field.

    Also since there are no other input controls you can tab ony to the checkboxes.

    (By defauilt tab works only on input controls and a tags)

    Regards

    Tony

    in reply to: jqGrid with jsonstring sorting problem #93798
    tony
    Keymaster

    Hello,

    The problem appear with this definition

     

    In order to resolve do it so

    $(“#testGrid”).empty().jqGrid({

    });

    Regards

    Tony

    in reply to: Grid size bigger than columns size #93797
    tony
    Keymaster

    Hello,

    Set the following parameter

    height: 'auto',

    or

    scrollOffset : 0,

    Look at grid documentation

    Regards

    Tony

    in reply to: Mulitselection of Rows #93796
    tony
    Keymaster

    Hello,

    Any example code on this?

    Also if you use getGridParam to obtain the selected rows you should do it this way

    var myselection = $.extend([],$(“#mygrid”).jqGrid('getGridParam','selarrrow'));

    Search the forum there is a such post

    Regards

    Tony

    in reply to: Auto Insert Column data #93795
    tony
    Keymaster

    Hello,

    I'm not sure that I understand.

    What you mean with

    jqgrd will grab new product id from a form which will be submitted to grid

    I think that where you grab the product id you should fill automatically the fields that should not be filled from the user.

    Best Regards

    Tony

Viewing 15 replies - 2,761 through 2,775 (of 7,981 total)

Stay connected with us in your favorite flavor!