Author Topic: Issue in ParamQuery Grid Inline Edit  (Read 2148 times)

sureshksn

  • Newbie
  • *
  • Posts: 2
    • View Profile
Issue in ParamQuery Grid Inline Edit
« on: December 08, 2016, 03:52:05 pm »
We are using ParamQuery grid in our project. In one of our screen, we are using the grid in modal popup with inline edit feature.

We are facing issue on editing the cell from second time. Here are the steps followed,

Open the popup, first time, tried to edit a record – it is perfectly changed and updated.
Now close and re-open the modal popup.
Try to change the data and update - It is not updating any data. Changed data gets vanished by retaining the previous value.
On debugging the code,
a. We are getting false in the following code snippet while updating the data,
Code: [Select]
if (grid.saveEditCell() == false) {
        return false;
  }
b. We are also getting the script error,
Code: [Select]
pqgrid.min.js:188 Uncaught TypeError: Cannot read property 'split' of undefined(…)
As of now, we are using the workaround,

“After updating the data 1st time, we are re-loading (using window.location.reload()) the page. Now it is working correctly. But in Ajax world, we don’t want to reload the full page, just to solve this issue. We believe, that this is because of some small issue or configuration missing.” Referred the following article and implemented the inline edit functionality http://paramquery.com/pro/demos/editing Appreciate your help.

Thanks
Suresh K