Herbalite

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: Add row before or after current row #100556
    Herbalite
    Participant

    The function addRowData can do that

    addRowData

    in reply to: not well formed #100418
    Herbalite
    Participant

    Skimming through the error message I saw this

    Rock & Talk Wireless

    This will cause this error.

    Instead of using CDATA you can run your output through PHP's htmlspecialchars

    htmlspecialchars

    in reply to: Editing: Enable/Disable for single rows? #99820
    Herbalite
    Participant

    Another note. The code above assumes that the action buttons are located at the rightmost cell.

    If it's different, then you have change

    jQuery('tr#'+rowId+' td:last div:first',jQuery(this)).hide();

    to

    jQuery('tr#'+rowId+' td:nth-child(nnn) div:first',jQuery(this)).hide();

    nnn is starting with 1 for the first cell (according to CSS rules)

    in reply to: Editing: Enable/Disable for single rows? #99819
    Herbalite
    Participant

    A bit late, had the same problem to solve today. Here is how I solved it: Use jqGrid's events and jQuery

    Add or alter the following jqGrid Options when creating the grid:

    gridview: false, // If set to true, the event below doesn't fire!

    afterInsertRow: function(rowId, rowData, rowElem) {

    // rowElem[nnn] column number to compare with (remember Javascript starts indexes at 0, so rowElem[2] selects the 3rd column)

    // Adapt the if clause to other comparisions if needed

Viewing 4 replies - 1 through 4 (of 4 total)

Stay connected with us in your favorite flavor!