cvneo

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Author
    Replies
  • in reply to: Delete last row blocked ? #125894
    cvneo
    Participant

    Hello
    Here is the test code.
    When deleting the last one is well supressed from the DB, ajax return null but the line remains in the JqGrid, even if we refresh via the refresh button.

    • This reply was modified 6 years ago by cvneo.
    in reply to: How to disable the publishing of some lines ? #125625
    cvneo
    Participant

    Hello,

    So this is not enough?

    rowattr: function (rd, curr, id) {
    if (rd.Editable == 0) {
    return {class ‘ui-state-disabled’};
    }
    },

    May be easier with a little example because I do not see what to add.

    Sorry JS is not my favorite 🙂

    Kind Regards,
    Chris

    in reply to: How to disable the publishing of some lines ? #125623
    cvneo
    Participant

    Hello,

    I read everything and do the test in every way and it does not work.
    In the demo link it works and I tested the same way but nothing to do … may be the bootstrap version of poses concern?.

    I would do a test with no bootstap installation to see.

    Nothing in the popup buttons are still active on the elements with the ui-state-disabled class on the Row.

    in reply to: How to disable the publishing of some lines ? #125620
    cvneo
    Participant

    Hello,

    So if I followed just add this command:

    styleUI : ‘Bootstrap’,
    rowattr : function( rd, curr, id ) {
    if(rd.Editable == 0 ) {
    return {class : ‘ui-state-disabled’};
    }
    },

    In the list of results it works. By cons in the pop-up that does not work.
    Perhaps the bootstrap release?

    • This reply was modified 6 years, 4 months ago by cvneo.
    in reply to: How to disable the publishing of some lines ? #125618
    cvneo
    Participant

    Hello,

    Thank you for the example, it works, non-editable lines are no longer “selectable”.

    By cons when I take an editable line, I click the edit button, the pupup opens then there are the buttons, next, previous, which also allow access to non-editable lines. Is there a trick?

    beforeSelectRow: function (rowid) {
    var selRowId = $(this).getGridParam(‘selrow’),

    if (selRowId !== rowid && rowData.Editable==0) {
    $(rowid).addclass(“ui-state-disabled”);
    }
    return true;
    },

    Thank you

    in reply to: How to disable the publishing of some lines ? #125615
    cvneo
    Participant

    <span id=”result_box” class=”” lang=”en”>Hello,</span>

    Thank you for the slopes.

    For now I hide the publishing bottom of the table buttons, the concern is that I losque changes in the modal box there next previous boom, and it is possible to go change those not Authorized …
    I wondered if there was not a function to say that a given line is not editable?

    (Recess server side is checked, but it is cleaner to not have as client-side <span class=””>access)</span>

    beforeSelectRow: function (rowid) {
    var    selRowId    = $(this).getGridParam(‘selrow’),
    tr        = $(this.rows.namedItem(rowid)),
    thisId    = $.jgrid.jqID(this.id),
    rowData = $(this).jqGrid(‘getRowData’, rowid);
    console.log(rowData.Editable);

    if (selRowId !== rowid && rowData.Editable==0) {
    // eneble the “Edit” button in the navigator
    $(“#edit_” + thisId).hide();
    $(“#del_” + thisId).hide();
    } else {
    // unselect previous selected row
    // disable the “Edit” and “Del” button in the navigator
    $(“#edit_” + thisId).show();
    $(“#del_” + thisId).show();
    }
    return true; // allow selection or unselection
    },

    • This reply was modified 6 years, 5 months ago by cvneo.
    in reply to: How to disable the publishing of some lines ? #125596
    cvneo
    Participant

    Hello,

    I have a jqGrid with a list of results (row).

    I want the user has the right to modify some lines.

    To see which line has the right to change, I have a column Right: 0/1

    I hope to be more clear?

    • This reply was modified 6 years, 5 months ago by cvneo.
    in reply to: calculation of the VAT in the line of duty to any tax. #101669
    cvneo
    Participant

    I found this example but the event does not fire when I out of my cell to switch to another.

    in reply to: Multiselect check if the check values ​​= 1 #101517
    cvneo
    Participant

    Solution :

    in reply to: MultiSelect checker des valeurs au chargement ? #101516
    cvneo
    Participant

    Solution :

    in reply to: Grouping header, change the title? #101495
    cvneo
    Participant

    data = $ (this) jqGrid (“getGridParam”, “data”);

    returns nothing so how …. ?

    in reply to: Grouping header, change the title? #101492
    cvneo
    Participant

    I tried that, but nothing in the console.log (data);
    I do not see how to get there 🙁

    in reply to: Master Details Grid #101484
    cvneo
    Participant

    May pass while utf8_general_ci which simplifirait things ?

    in reply to: Cell height suited to the text ? #98439
    cvneo
    Participant

    Solution :

    Ajouter ce style :

    .ui-jqgrid tr.jqgrow td {

    in reply to: Dynamically Populate Select Dropdown #98433
    cvneo
    Participant

    Hello,

    I have not found an example to use the events, DATAIN, DataEvent on http://trirand.com/blog/jqgrid/jqgrid.html

    It's a shame because I think a lot of people are losing hope to make things further with this plugin, especially since French is look for good keywords to find what I want to do is not easy.

    The I simply trying to recover the value of a field of a line to update a drop down list linked together:

    Country and state

    When editing a line I want to spent the id of the country to see the list of states in the country concerned in the other list:

Viewing 15 replies - 1 through 15 (of 25 total)

Stay connected with us in your favorite flavor!