Forum Replies Created

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • in reply to: column header text color column header text color #78059

    nostromo
    Participant

    this is my code:

    $(“#btnFiltrar”).on(‘click’, function () {
    $(‘#personal .jqx-grid-column-header:eq(0)’).css(‘color’, ‘#3F0’);
    });

    #personal is my grid

    $(“#personal”).jqxGrid(
    {
    width: 1100, //20 pixeles mas que la suma de las columnas
    height: 550,
    source: dataAdapter,
    theme: ‘shinyblack’,
    rowsheight: 20,
    localization: getLocalization(),
    columns: [
    { text: ‘Nombre’, datafield: ‘nombre’, width: 260, pinned: true },
    { text: ‘Rut’, datafield: ‘rut’, width: 100 },
    { text: ‘1’, datafield: ‘d1’, width: 1, align: ‘center’, cellclassname: colorFondo },
    { text: ‘2’, datafield: ‘d2’, width: 1, align: ‘center’, cellclassname: colorFondo },
    { text: ‘3’, datafield: ‘d3’, width: 1, align: ‘center’, cellclassname: colorFondo },
    { text: ’31’, datafield: ‘d31’, width: 1, align: ‘center’, cellclassname: colorFondo, hidden: oculta31 }
    ]
    });

    Pressing the button #btnFiltrar, should change the color of text in the header of the column, but does not function .

    with the sample code either, you could guide me I’m doing wrong?

    var firstNameCell = $(‘div .jqx-grid-column-header:eq(0)’);
    firstNameCell.css(‘background-color’, ‘rosybrown’);

    in reply to: current time current time #70503

    nostromo
    Participant

    already solved it , I had to add value: new Date()

    in reply to: current time current time #70502

    nostromo
    Participant

    ivailo, OK, so what I have, but the time is me 0:00,
    and I want you to give me the current time.

    example: 30-04-2015 00:00

    I need

    30-04-2015 and current time


    nostromo
    Participant

    sorry, I had missed

    cellendedit: cellendedit

    columns: [
    { text: ‘Name’, datafield: ‘name’, width: 250, cellendedit: cellendedit },
    { text: ‘Beverage Type’, datafield: ‘type’, width: 250, cellendedit: cellendedit },
    { text: ‘Calories’, datafield: ‘calories’, width: 180, cellendedit: cellendedit },
    { text: ‘Total Fat’, datafield: ‘totalfat’, width: 120, cellendedit: cellendedit },
    { text: ‘Protein’, datafield: ‘protein’, minwidth: 120, cellendedit: cellendedit }
    ]

    works great!!!


    nostromo
    Participant

    friend, the alert(editedColumn) returns me “undefined”, and add the code and explain.

    updaterow: function (rowid, newdata, commit) {
    alert(editedColumn);
    commit(true);
    }

    var editedColumn;
    var cellendedit = function (row, datafield, columntype, oldvalue, newvalue) {
    editedColumn = datafield;
    };

Viewing 5 posts - 16 through 20 (of 20 total)