Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
igGrid onblur not firing cell end events?
posted

I have multiple igGrids (2014), all using editMode cell. When I begin editing a cell, then click off the grid, either to another grid or other HTML element, the editCellEnding event is not firing. The event does fire as expected when hitting Enter or tabbing, just not when clicking off the grid. Am I missing a configuration?

Thanks!

Parents
  • 17590
    Verified Answer
    Offline posted

    Hello John,

    Thank you for posting in our community.

    The behavior that you are experiencing is expected. The reason is that by design editCellEnded event is fired only when Enter or Tab key is pressed . This will ensure that edit mode is ended and changes are accepted by the grid. Some further information regarding Upodating feature as well as a user interactions chart could be found at the following link:

    http://www.igniteui.com/help/iggrid-updating

    However, what I can suggest as a workaround for achieving your requirement is handling the blur event or the igEditors and call endEdit method. Basically, the idea is to capture the moment when editors are loosing focus and manually call the method from igGrid`s API to end the edit.

    A small sample illustrating my suggestion could be found at the following link:

    http://jsfiddle.net/2ga7gm0d/2/

    I hope you find my information helpful.

    Please let me know if you need any further assistance with this matter.

Reply Children