tony

Forum Replies Created

Viewing 15 replies - 7,156 through 7,170 (of 7,981 total)
  • Author
    Replies
  • in reply to: Server side error message for formedit modal dialog #83569
    tony
    Keymaster

    Which way do you submit data to the server?

    Really I do not understand?

    If you post data via formedit WHAT IS THE PROBLEM

    to use afterSubmit when you add and edit Record?

    When you post data this way there is server response

    right? Then

    .navGrid(pager,{…},

    { afterSubmit: function(serverresponse,data){

    // catch here the response

    in reply to: Server side error message for formedit modal dialog #83566
    tony
    Keymaster

    Hello,

    Not sure if this is the case, but

    loadComplete: function() {

    // use userdata from jsonReader / get it and depending on the

    // condition

    if(something_from user_data == true){

    ViewModal(“#editmod”+your_grid_id); // ViewModal is separate func

    $(“#FormError > td”,”#editmod”+your_grid_id).html(“The message

    here”).show();

    }

    }

    Enjoy

    Tony

    in reply to: add field to form which is not found in row #83561
    tony
    Keymaster

    Hello,

    onInitializeForm is the right place since it is called only once,

    but you should use insertBefore or insertAfter for this purpose.

    The input fields in the form are encloused in table, so you may

    add additional content

    Regards

    Tony

    in reply to: Server side error message for formedit modal dialog #83560
    tony
    Keymaster

    Hello,

    It is really difficult to me to undersyand what you mean. Sorry.

    You can use afterSubmit event for this purpose.

    This event accept arbitrary data from serever and depending on it

    you can return true(succes) and false again with the message which

    is displayed in the form error id.

    Regards

    Tony

    tony
    Keymaster

    Hello,

    I do not answerd of this since I think you will find a more easy solution.

    I do not known which version do you use but lets look at jsonReader

    and xmlReader.

    in reply to: form editing – differenciate edit from add #83558
    tony
    Keymaster

    Hello,

    This is nothing to do with the separation of edit and add.

    Imagine in this case we should have two editoptions for add and edit

    in the colModel, which I think is not applicable.

    You can easy implement this using the available events

    and setColProp method.

    Regards

    Tony

    in reply to: “colmodel.edittype: select” model looks incorrect. #83557
    tony
    Keymaster

    Hello,

    This feature is discussed many times. All here is based and what you

    see in the data. You can look in to the form how to overcome this.

    I will think in the future how to connect this with the DB

    Regards

    Tony

    in reply to: Please add “password” support for colModel.edittype #83556
    tony
    Keymaster

    Hello,

    It is added and will be in the public beta soon

    Regards

    Tony

    in reply to: Lock Columns #83555
    tony
    Keymaster

    Hello,

    It is not so easy in the current implementation,

    but not impossible. Anyway I will try to implement this, but not in the

    incomming 3.3 release

    Regards

    Tony

    in reply to: onclickSubmit and beforeSubmit… #83553
    tony
    Keymaster

    Hello,

    Good recomendation and have sence. I will see haw to implement

    this recommendation.

    Best Regards

    Tony

    in reply to: Custom Edit #83552
    tony
    Keymaster

    Hello,

    Add additinal empty cell to the response:

    echo “”;

    in reply to: In line editing issue – data problem? #83551
    tony
    Keymaster

    Hello,

    Actually this should be:

    id: “absDate” and not id:”Absence Date”,

    since you do not have defined Absence Date as name, but as label.

    This should work.

    Regards

    Tony

    in reply to: Custom Edit #83547
    tony
    Keymaster

    Hello,

    in reply to: beforeSubmit #83543
    tony
    Keymaster

    Hello,

    You will not need to refer to it, the data come to you and for you

    You just need to use it Wink

    in reply to: Post dynamically additional data to the editurl #83541
    tony
    Keymaster

    Hello,

    you should download the latest version for

    Download section here (3.2.4)

    Regards

    Tony

Viewing 15 replies - 7,156 through 7,170 (of 7,981 total)

Stay connected with us in your favorite flavor!