guriddo.support

Forum Replies Created

Viewing 15 replies - 631 through 645 (of 1,092 total)
  • Author
    Replies
  • in reply to: Ajax Success return data #125649
    guriddo.support
    Participant

    Hello Christian,

     

    There is a problem with ajax sync:false when used with jQuery, so the suggestion I have made will not work.

    I can suggest you another approach.

     

    The idea is simple

    1. Determine at server that we are in add mode.
    2. Check if the record exists
    3. do the needt to insert if it not exists
    4.disable the automatic add operation in grid.

     

    This code can look like this (note that we do not try this):

     

    Kind Regards
    Will

    Guriddo Support Team

    in reply to: Entry formula on input #125648
    guriddo.support
    Participant

    Hello,

     

    Thank you for the feedback. We don’t try this, so it is a good that you post this for the other users.

     

    Thank you.

     

    Kind Regards

    Will

    Guriddo Support Team

    in reply to: Entry formula on input #125642
    guriddo.support
    Participant

    Hello,

    It depend where you want to put this logic – server side or client side.

    I think that one possible solution is toy use a javascript formula parser something like this one

    The idea is to bind a change event to this field using dataInit function and maybe it is better to use two fields one for the formula another for result, but I think it can be done with one field too.

    Kind Regards,
    Will

    Guriddo Support Team

    in reply to: Ajax Success return data #125640
    guriddo.support
    Participant

    Hello,

     

    Possible cuase is that in a case you do this, there are two ajax requests at the same time – your and the jqGrid one, which follow immediate after beforeSubmit

     

    One possible resolution is the set is your request async : false in ajax settings

     

     

    Kind Regards,
    Will

    Guriddo Support Team

    in reply to: Entry formula on input #125639
    guriddo.support
    Participant

    Hello,

     

    Could you please let us know where and how you do this. If previously you use jqGrid JavaScript, then you can do this in PHP too – just let us know the JavaScript way.

     

    Kind Regards,

    Will

    Guriddo Support Team

    in reply to: How to disable the publishing of some lines ? #125626
    guriddo.support
    Participant

    In inline edit you should add class “not-editable-row” in form edit you should add class “ui-state-disabled” for jQueryUI and “ui-disabled” when using bootstrap.

    Guriddo Support Team

    in reply to: How to disable the publishing of some lines ? #125624
    guriddo.support
    Participant

    Read carefully  this post Form beginning to the end.

     

    Regards

    Will

    Guriddo Support Team

    in reply to: How to disable the publishing of some lines ? #125622
    guriddo.support
    Participant

    Hello,
     
     
    Dear @cvneo it seems to me you do not have carefully read my posts. The solution is in some of my previous posts – you just need to read them.
     
     
    Regards,
    Will

    Guriddo Support Team

    in reply to: How to disable the publishing of some lines ? #125619
    guriddo.support
    Participant

    Hello,
     
    This behaviour is by default. I think you do something wrong. Records with ui-state-disabled are not selectable and not editable. Also the navigator button is disabled too if the next record is disabled.
     
    See demo here

     

    Kind Regards,
    Will

    Guriddo Support Team

    in reply to: How to disable the publishing of some lines ? #125617
    guriddo.support
    Participant

    Hello,

    As I say in may previous post if you set desired rows with the class ui-state-disabled, the rows are not editable. The small function in this case is easy to be written.

     

     

    where the rowid is the id of the row.

     

    Note that in this case the navigator buttons are disable autoamtically when you select the row with this class.
     

    All you need is to set the desired class depending on your data
     

    Regards
     
    Will

    Guriddo Support Team

    in reply to: How do I update the summaryrow after inline editing? #125612
    guriddo.support
    Participant

    Hello,

     

    Sorry for the mistake.

    If you use editor like NetBeans you can easy see the error.

    a ” } ” is missing, Try this:

     

     

    Regards,
    Will

    Guriddo Support Team

    in reply to: How do I update the summaryrow after inline editing? #125610
    guriddo.support
    Participant

    Hello,

     

    The syntax is correct, but you will need to put it in dblSelect Row

     

    Regards,
    Will

    Guriddo Support Team

    guriddo.support
    Participant

    Hello,

     

    Thank you very much for the information.

     

    Kind Regards,

    Will

    Guriddo Support Team

    in reply to: How do I update the summaryrow after inline editing? #125606
    guriddo.support
    Participant

    Hello,

     

    There are a lot of solutions. The easy stable way without to write a lot of code is to reload the grid (trigger(‘reloadGrid’) ) after the save is done.

    For this purpose you can use the aftresavefunc in editRow method. Please look into the docs here

     

    Kind Regards

    Will

    Guriddo Support Team

    in reply to: Subgrid #125602
    guriddo.support
    Participant

    Hello,

    Check your code again. See the errors setting at top of the php script

     

     

    Maybe when update is in action some variable in your script are not set causing the update to stop.
     

    My suggestion is to check if your variables from the sentence are set

     

    Hope you get the point.
     

    Kind Regards,
    Will

    Guriddo Support Team

Viewing 15 replies - 631 through 645 (of 1,092 total)

Stay connected with us in your favorite flavor!