I have a grid with CheckboxSelectionModel and multiselection enabled. I have function that gets and displays data from server with AJAX call on rowselect event. I want to execute the AJAX call only when there is one row selected. Everything works fine if I select just one row, but if I select multiple rows with "Shift" key the rowselect event gets fired as many times as there are selections. For example if I select two rows the rowselect event gets fired 2 times:
1) first time with only the first row selected
2) second time with two rows selected in selection model
I can check if selection model has more than one row selected and call AJAX only if there is one row selected. But in this case AJAX will happen for the first rowselect call.
Is there a way to determine if there are more than one row selected and fire the rowselect function only if there is one row selected?
Any help appreciated.