31
Bug Report / Re: pqGrid v11 Cannot Input Text When Moving Focus to Editable Cell with Null Value
« Last post by paramvir on April 20, 2026, 09:40:39 pm »Thank you for the details, I'm able to reproduce the issue.
<br>var blob = await grid.exportData({
format: format,
nopqdata: true,
render: false,
sheetName: "Example",
eachCell: function(cell) {
//examine cell.value
}
});
eachCell(cell, ci, ri){
if(ri==2 && ci == 2){
//debugger
cell.border = {
top: "1px dotted #ff0000",
bottom: "1px solid #ff0000",
}
}
},
eachRowHead(row, ri){
row.htFix = 100
},
eachRow(row, ri){
row.htFix = 50
}
var blob = await grid.exportData({
// url: "exportData.do",
format: format,
nopqdata: true, // applicable for JSON export
render: false,
sheetName: "Example",
replace: [/<br\/>/g, '\r\n']
});
if (typeof blob === "string") {
blob = new Blob([blob]);
}
saveAs(blob, excelNm + "." + format);
var colM = [{
title: "Auto size editor (Enter for new lines)",
width: 200,
dataIndx: "ShipAddress1",
editable: false,
editModel: {
saveKey: ''
}
},
{
title: "Auto size editor (Alt-Enter for new lines)",
width: 200,
dataIndx: "ShipAddress2"
},
{
title: "Manually resizable editor",
width: 200,
dataIndx: "ShipAddress3",
editor: {
type: "textarea",
attr: "rows=8 cols=58",
style: "resize:both;",
appendTo: 'grid'
},
editModel: {
saveKey: ''
}
}
];
var dataModel = {
location: "remote",
dataType: "JSON",
method: "GET",
url: "/content/invoice.json",
getData: function(response) {
response.data.forEach(function(rd) {
rd.ShipAddress1 = rd.ShipAddress2 = rd.ShipAddress3 =
rd.ShipAddress + "\n" +
rd.ShipCity + "\n" +
(rd.ShipRegion || "") + "\n" +
rd.ShipPostalCode;
});
return response;
}
};
$("div#grid_custom_editing").pqGrid({
title: "Shipping Orders",
dataModel: dataModel,
colModel: colM,
autoRow: true,
scrollModel: {
autoFit: true
},
columnTemplate: {
valign: 'center'
},
create: function(evt, ui) {
this.widget().pqTooltip();
},
editModel: {
clicksToEdit: 1,
keyUpDown: false
},
numberCell: {
show: false
},
resizable: true
});
selectionModel: { type:"row", mode:"single", column:false, all:false, toggle:false},rowClick: function(event, ui) {
var sel = that.grid.pqGrid("SelectRow");
if( !sel.isSelected({rowIndx:ui.rowIndx }) )
sel.add({rowIndx:ui.rowIndx});
}, const _isDateFormat = pq.isDateFormat;
pq.isDateFormat = function (fmt) {
return fmt == 'Standard' || fmt == 'Fixed' ? false : _isDateFormat.call(this, fmt);
};