Infinite scroll demo breaks after a delete

Posted by: daryn.holmes on 6 October 2017, 12:15 am EST

  • Posted 6 October 2017, 12:15 am EST

    Hi,

    I was looking at this demo: http://jsfiddle.net/Wijmo5/hwr2ra1q/

    I noticed the following problem.

    Select a range of Countries, and press delete.

    Then scroll down and you should see that the infinite scroll is no longer working.

    I think the grid has gone into edit mode…

    Is there a way to resolve this?

  • Posted 8 October 2017, 6:34 pm EST

    Hi,

    Yes, you are absolutely correct. The grid enters into edit mode. You can exit from edit mode by handling keyup event and call commitEdit method of CollectionView property for FlexGrid or CollectionView object if exist.

    For reference, please go through the fiddle: http://jsfiddle.net/mkgupta911/hwr2ra1q/8/

    ~Manish Kr Gupta

  • Posted 9 October 2017, 12:17 am EST

    Hi,

    Thanks for the answer.

    What does commitEdit actually do? Will that mark the cell\row as being edited?

  • Posted 9 October 2017, 4:15 pm EST

    Hi,

    The commitEdit method commits the pending changes made in FlexGrid and makes null to current edit item which caused row edit end.

    ~Manish Kr Gupta

Need extra support?

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

Learn More

Forum Channels