Grid Deselect Multiple Checkboxes with shift click - reactjs

We are trying to get our react ag-grid checkbox functionality to work like gmail where if you shift click multiple checkboxes that are already selected it will deselect them (see screenshot below). The problem is during onRowSelected it will give me the rows that are already selected but I can't find the range that was selected. onSelectionChanged will get me the range selected but doesn't tell me the row that was just selected so that I can get the value to deselect the checkboxes. Anyone have any suggestions?

Related

Material ui Datagrid get value on unchecking checkbox

I am using Material ui datagrid. I want to get the value on uncheck of checkbox also.
I have an API which update the Datagrid, on selection I get the selected row data which then on button click I update the value into another array of object, Now when I close the datagrid and open again I want the data to be shown in table comparing if already present in array of object mark it as selected in checkbox, Now when i deselect the checkbox i need the ID and the row data which was removed so I can update the array again, but here on deselect the checkbox it shows empty, so how I can get the removed one so I can update my array
https://codesandbox.io/s/66424752get-row-item-on-checkbox-selection-in-react-material-ui-data-grid-wp4vl?file=/demo.tsx

uigrid custom filter rows are note getting unselected

I have custom filters implemented in ui grid for multiple columns and this filtering works very fine.
Now when i do the Reset All Filter, it works functionally however rows which are selected for Filters remains selected. This is really disturbing. I want to deselect all rows in the filters as soon I click Reset All Filter but this is now happening.
Did anyone faced this problem??
Individually clearing selected rows for a single filter
...
$scope.gridPopupApi.selection.clearSelectedRows();
...
UI Grid filter example
http://ui-grid.info/docs/#!/tutorial/Tutorial:%20306%20Custom%20Filters

How to access click event of option in React dual list box?

I am using react-dual-listbox. Here I am able to select the columns and deselect and use the selected values. But, I want to access the selected option in selected items on click of that particular item.
Ex: if 2 options are selected. If i click on second one, It should give me the value and index of the selected option. I saw something to use selectedRef for that purpose, But I am new to React.
Could anyone please help me out.
<DualListBox
canFilter
preserveSelectOrder
options={this.state.availableColumns}
selected={selectedColumns}
onClick={this.selectedRef}
onChange={this.onColumnSelected}
/>

extjs- checkboxgrid check boxs unselecting on clicking different column in grid

I am using checkboxmodel grid in extjs for display values.
after selecting multiple row checkboxs, if i click different column all selected checkbox are unselecting. how to stop this.
https://fiddle.sencha.com/#fiddle/18bj
Use checkOnly: true on the selection model:
True if rows can only be selected by clicking on the checkbox column,
not by clicking on the row itself. Note that this only refers to
selection via the UI, programmatic selection will still occur
regardless.
https://fiddle.sencha.com/#fiddle/18bo

On clicking the row of a grid, checkboxes of other rows getting unchecked using checkboxselectionmodel in GWT

I have a multiSelectCombobox that uses a grid with checkboxselectionModel. I want checkboxes getting checked on clicking the checkbox, but what is happening here is when i click the row of an unchecked checkbox, that checkbox gets selected while all the other checkboxes that were previously checked get unchecked automatically.
I have seen many threads posted on Sencha but none seem to be of any help.
grid=new Grid(skillsetStore, new ColumnModel(columnConfigs));
cm.setSelectionMode(SelectionMode.MULTI);
grid.setStyleAttribute("borderTop", "none");
grid.setBorders(true);
grid.setStripeRows(true);
grid.setWidth(300);
grid.getView().setForceFit(true);
grid.getView().setAutoFill(true);
grid.setSelectionModel(cm);
grid.addPlugin(cm);
grid.setHideHeaders(true);
This is my grid that i am using...
Any help on this issue would be much appreciated.
I had a similar issue. I was setting the checkbox value to false in data bind complete event. Once I removed it, it worked fine

Resources