Deleting value of cell using Delete/Backspace key doesn't fire rowEditEnded

Posted by: gupta.prakul on 7 January 2018, 4:57 pm EST

    • Post Options:
    • Link

    Posted 7 January 2018, 4:57 pm EST

    Hi Team,

    I’m using wijmo grid. On deleting cell values using delete or backspace key and moving out of the row doesn’t fire rowEditEnded event.

    Can you please look why this event doesn’t get fired in this case?

  • Posted 7 January 2018, 6:05 pm EST

    Hi Prakul,

    We are sorry, we are unable to replicate the issue at our end with the latest build version 5.20173.380.

    Please go through the following fiddle and watch log in console window.

    http://jsfiddle.net/mkgupta911/6GB66/884/

    ~Manish

  • Posted 8 January 2018, 5:13 pm EST

    Hi Manish,

    Yes this issue is not coming in version you have mentioned.

    But in our application we are using version 5.20171.300. In this version this issue is there. Can you please cross check at your end and let us know why the issue is there in this version.

    You can replicate the same in attached project.

    Also currently we cannot go for update, can we get fix for version - 5.20171.300.WijmoGrid.zip

  • Posted 8 January 2018, 10:15 pm EST

    Hi Prakul,

    Thanks for the sample.

    The rowEditEnded event is not triggering for FlexSheet control. The event is getting triggered as expected for FlexGrid control.

    This seems a bug. Hence, this issue has been forwarded to the concerned team for further investigation with internal tracking id 304432.

    We will let you know as we get any update on this.

    ~Manish

  • Posted 14 January 2018, 8:22 pm EST

    Hi Manish,

    Thanks for the response.

    Please let us know when the fix is made.

    Also can we get the fix in the version version 5.20171.300. As we cannot upgrade our application to latest version due to hard dependencies with other libraries like Angular 2, typescripts and many more. It will not be feasible for us to upgrade our application and this issue is a major one.

    Regards,

    Prakul Gupta

  • Posted 15 January 2018, 3:50 pm EST

    Hi Prakul,

    This issue has been found fixed in build 5.20173.404. Sorry, the fix cannot be get for version 5.20171.300. You should try to update the Wijmo builds to latest for getting all new update fix and enhanced features.

    However, we have a workaround for this. You need to check if cellEditEnded event gets triggered and cell value is null. If yes, you need to set a flag to true and on selection change call onRowEditEnded event.

    ~Manish

  • Posted 18 January 2018, 8:55 pm EST

    Hi Manish,

    The workaround you have suggested doesn’t seems to reflect the same behavior like of onRowEditEnded.

    onSelectionChange is called every time, suppose if I edit the cell using ‘Delete key’ and moves to next cell of same row, then onSelectionChange will be called and our flag is true so it will call onRowEditEnded. But ideally it should not have had called because we have not changed the row.

    May be I have wrongly interpret your suggested workaround. So can you please explain it using an example by sharing a small demo.

  • Posted 21 January 2018, 6:33 pm EST

    Hi Prakul,

    Please refer to the fiddle that implements the same.

    http://jsfiddle.net/627xcqLd/3/

    Refer to $scope.init method for implementation

    PS: The sample is in Angular JS technology, which may be changed to Angular easily.

    ~Manish

  • Posted 21 January 2018, 9:39 pm EST

    Hi Manish,

    This approach doesn’t work if the user clicks outside the grid after using delete/backspace key.

    As the selection didn’t change.

    Can we do something for this use case?

    You can check the same at http://jsfiddle.net/627xcqLd/3/

    Regards,

    Prakul Gupta

  • Posted 22 January 2018, 3:09 pm EST

    Hi Prakul,

    For this, you need to handle, FlexSheet’s lostFocus event and call rowEditEnded event. Please refer to the following fiddle for the same.

    http://jsfiddle.net/627xcqLd/4/

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels