Hi,
I have a problem for add/delete columns on context header.
I have set context-click event but not understand how to add/delete columns as
{
title: "Data", align: "center", colModel: [
{
title: "", width: 50, dataType: "bool", menuInDisable: true,
render: function (ui) {
var rowData = ui.rowData,
dataIndx = ui.dataIndx;
ldataIndx = 6;
rowData.pq_cellcls = rowData.pq_cellcls || {};
if (rowData["Skip"] == true) {
rowData.pq_cellcls[dataIndx] = 'grey';
rowData.pq_cellcls[ldataIndx] = 'grey';
return "<input type='checkbox' " + (ui.cellData ? "checked='checked'" : "") + " />";
}
else {
rowData.pq_cellcls[dataIndx] = '';
rowData.pq_cellcls[ldataIndx] = '';
return "<input type='checkbox' " + (ui.cellData ? "checked='checked'" : "") + " />";
}
},
align: "center", dataIndx: "Skip", exportRender: false, editor: false, type: 'checkbox', cls: 'hideRightborder'
},
{ title: "Opics Test", width: 170, dataType: "string", cls: 'hideLeftborder', filter: { crules: [{ condition: 'contain' }] } }]
},
formate with blank data.
Please give me some links or some possible way to achieve add/delete columns like MS Excel.
Thank you,
Jigneh