I am facing an issue while copying values from Excel and pasting them into pqGrid.
Issue Description:
When I copy a number in Indian format from Excel (e.g., 3,69,92,674.00) and paste it into pqGrid, the value is getting converted to #VALUE! instead of the correct numeric value.
Current Implementation:
I have implemented the following pqGrid events to track the pasted data:
paste: function (evt, ui) {
},
beforePaste: function (evt, ui) {
console.log("Before Paste (raw data): ", ui.clipboardData);
console.log("Parsed rows: ", ui.rows);
},
change: function (evt, ui) {
if (ui.source === 'paste') {
console.log("After Paste (final data): ", ui.updateList);
ui.updateList.forEach(row => {
console.log("Row Data:", row.newRow);
});
}
}
In all console logs (paste, beforePaste, and change events), the value is already coming as #VALUE!.
The actual Excel value (3,69,92,674.00) is not being received at any stage.
Kindly suggest the resolution for this issue.