Forum Replies Created
-
Author
-
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’);already solved it , I had to add value: new Date()
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
April 21, 2015 at 11:45 am in reply to: Capture name column (datafield) Capture name column (datafield) #70115sorry, 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!!!
April 20, 2015 at 6:52 pm in reply to: Capture name column (datafield) Capture name column (datafield) #70085friend, 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;
}; -
AuthorPosts