jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • mpintoz
    Participant

    thank you very much

    in reply to: Show/hide multiple columns Show/hide multiple columns #120642

    mpintoz
    Participant

    Hi, friend,

    I have tried to do that but it won’t let me

    I have tried like this:

    $(“#jqxgridCotations”).jqxGrid(‘hidecolumn’,’EditAdj’);
    $(“#jqxgridQuotes”).jqxGrid(‘hidecolumn’,’DeleteAdj’);

    also like this:

    $(“#jqxgridCotations”).jqxGrid(‘hidecolumn’,’EditAdj’);
    $(“#jqxgridQuotes”).jqxGrid(‘hidecolumn’,’DeleteAdj’);
    $(“#jqxgridQuotes”).jqxGrid(‘endupdate’);


    mpintoz
    Participant

    Hello friend I had a similar problem, I wanted a checkbox column if it was true to take the value of another column to add a total here I leave my code:

    COLUMN SUM()
    { text: ‘Impuesto’, datafield: ‘Impuesto’, width: 110, align: ‘center’, cellsalign: ‘center’, editable: false , //aggregates: [‘sum’] },
    aggregates: [{ ‘<b>Total: </b>’:
    function (aggregatedValue, currentValue, column, record) {
    var total = 0;
    if(record[‘Aplicar’] == 1){
    total = parseFloat(record[‘Impuesto’]);
    }
    return aggregatedValue + total;
    }
    }]
    },

    COLUMN CONDITION:
    { text: ‘Aplicar’, datafield: ‘Aplicar’, width: 70, columntype: ‘checkbox’, align: ‘center’, cellsalign: ‘center’, cellsrenderer: columncheckboxRenderer }

    var columncheckboxRenderer = function (value) {
    $(“#jqxgridImpuestos”).jqxGrid(‘endupdate’);
    }

Viewing 3 posts - 1 through 3 (of 3 total)