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
4040
Two events : button click and row selection
posted

Hi,

We have a Xamgrid with several columns. First contains an "Edit" button.

We would like the following behavior :

      case 1 - click on "normal" (text) cell : launch data loading

      case 2 - click on "Edit" button :

                      a - launch data loading

                      b - switch to edit mode (not in the grid, this is some of our code)

In case 1, no problem as only one event is firered on row selection (ex : SelectedRowsCollectionChanged).


But in case 2, two events are fired :

          - First the one for row selection,

          - and then the button click

These two events are independent (not synchronized). So depending on how long takes first one to finish (loading some data), the second event can fire before the other one finish or not.

Is there a way for us to  synchronize these events ?

By the way if during case 2, the focus is moved out of button, click event is not firered.....


Regards.

Alain.

 

Parents Reply Children
No Data