1
Help for ParamQuery Grid (free version) / cellUnSelect
« on: January 09, 2014, 07:21:17 pm »
Hi!
I'm using the Pqgrid and works Perfectly... but I need to call a function when the cellUnSelect event is triggered and I'm getting an error because this event is not calling the required function
I'm using the Pqgrid and works Perfectly... but I need to call a function when the cellUnSelect event is triggered and I'm getting an error because this event is not calling the required function
Code: [Select]
var unmodified = datai;
$(function () {
var obj = { width: 1150, height: 400, title: "Controles de Procesos y Personas", resizable: true, draggable: true };
obj.colModel = [{ title: "Codigo", width: 100, dataType: "string" },
{ title: "Nombre", width: 200, dataType: "string" },
{ title: "Admin", width: 50, dataType: "string" },
{ title: NombreItems[0], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[1], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[2], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[3], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[4], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[5], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[6], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[1], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[1], width: 60, dataType: "float", align: "center" },
{ title: NombreItems[1], width: 60, dataType: "float", align: "center" }];
obj.dataModel = { data: datai };
$("#grid_array").pqGrid(obj);
$("#grid_array").pqGrid({ freezeCols: 2 });
$("#grid_array").pqGrid({
cellUnSelect: function (event, ui) {
}
});
});
$("#grid_array").on("pqgridcellunselect", function (event, ui) {...}