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
1085
Cancelling activeRowChanging does not cancel row selection
posted

If false is returned from the activeRowChanging event in order to prevent the user from changing rows, the row is still selected, which doesn't make any sense.

If we want to prevent the user from clicking on a different row, we have to return false from both the activeRowChanging and rowSelectionChanging events, which is very inefficient and prone to failure.

  • 23953
    Suggested Answer
    Offline posted

    Hello Karl,

    This behavior is by design. The activeRowChanging is tight to igGridSelection.activation option. Activation functionality supports keyboard navigation. The different border indicates that the row is active, which does not imply that it is selected. The rowSelectionChanging event is responsible only for the selection. When igGridSelection.activation is set to false then the activeRowChanging event will not fire.

     

    Best regards,
    Martin Pavlov

    Infragistics, Inc.