wijmo rowchanging event fires first

Posted by: pmithilesh on 21 October 2020, 12:14 pm EST

  • Posted 21 October 2020, 12:14 pm EST

    Hi,
    I am using wijmo Grid and have a row changing event setup which checks for changes from other control on page. II have a input html control and on blur i update the model.
    Row changing event fire first and then blur event fires up how do i make sure blur events fire first so that row changing event can capture those changes is there any way.
  • Replied 21 October 2020, 9:53 pm EST

    Hi Mithilesh,

    Flexgrid does not provide any row changing event, are you referring to selectionChanging event? Also, is the HTML input is added inside the grid's cell or outside the grid? Could you please share some code snippet or a small sample to replicate the issue so that we could have a better understanding of the issue

    Thank you
    Sharad
  • Replied 21 October 2020, 11:57 pm EST

    Hi Sharad,
    i have selectionChanging event on grid.
    html grid control is out side the grid in another Angular library and we use it like plugin in angular library.
    I will try to put the code sample but its hard to put as it has angular libraries.
    Example
    There are 2 sections 1)Wijmo Grid on Top 2)Controls in bottom HTML controls (selected row decide which Data we want in those controls)

    we have Grid on top which used as navigation with selection and when you select the item html input control get loaded below with data.

    user can change the html input control value and i capture that on blur and when user try to change the row in grid shows unsaved changes based on changes you made in input control.

    Issue is i dont get unsaved changes as blur event fires after selectionChanging


  • Replied 26 October 2020, 12:42 am EST

    Thank you for the additional information. I tried to prepare a sample to replicate the information but was unable to replicate the issue. Could you please have a look at the following sample and let us know if there is something missing to replicate the issue:
    https://codesandbox.io/s/wijmo-angular-forked-iq5e5?file=/src/app/app.component.ts
    In the above sample when switching from text field to grid, blur event on the text field fires first and then selection changing gets fired.
Need extra support?

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

Learn More

Forum Channels