multiple selection using mouse drag - angularjs

I am using ui-grid v3.0.0-rc.22 in my application.
I use selection features of it and everything work fine, but i want to use selection using mouse drag.
Is it possible to select multiple row using mouse drag.
Any help greatly appreciated.

I don't think this is possible. You can select multiple rows by holding CTRL+Shift and then left-clicking on the first and last rows of the interval of rows you want to select.

Related

How to prevent row deselection in a Mui Datagrid?

Currently using Mui 5 and ran into an interesting issue. There's a prop to prevent selection of a row - isRowSelectable; however, there doesn't seem to be a way to prevent de-selection of a row.
Here's the use case: when the user selects all, we want to prevent them from deselecting any individual rows (until they deselect all).
Example of isRowSelectable (https://codesandbox.io/s/nez8ec?file=/demo.tsx) need one for controlling deselection.

how i can do a DND in treeview with model filter in GTK 3 with GTK_SELECTION_MULTIPLE in C?

I'm trying to implement a DND solution on 2 GTK treeview with a multiple selection. The single selection works well, but as soon as set the gtk_tree_selection_set_mode to GTK_SELECTION_MULTIPLE I must change my on_drag_data_get callback(drag-data-get).
The gtk_tree_selection_get_selected only works with a single selection. With the multiple selection I use the gtk_tree_selection_get_selected_rows to have a glist of selected rows and after I do a g_list_foreach with a function to set the gtk_selection_data with gtk_selection_data_set, but from there I'm lost.
i find a solution, in fact i no longer use the gtk_selection_data to forward my data, it's just use to fired the drag-data-receive.
In my drag-data-get i fill a liststore with all selected rows and in my drag-data-receive i just browse this liststore to fill the target's liststore and it's works well. I know this isn't the best solution but it works...
if that can help...

Ag-grid drag and drop doesn't work after sorting rows

After sorting my rows on Ag-grid-react, drag and drop stops working. Before sorting, drag and drop is all set and working well.
postSort API does not seem to have something to achieve what I need, reset the row or even set draggable just like for selection.
postSort={nodes => nodes.forEach(n => n.setRowSelectable(true))}
I've tried also to use
postSort={nodes => nodes.forEach(n => n.setDragging(true))}
but that would actually start the dragging for all the rows instead
I want the drag and drop to keep working when row is clicked after sorting them.
Thanks in advance!
I found a solution that worked for me. if you are facing a similar issue where you want to enable drag after a sort you need to disable the sort like this:
gridColumnApi.applyColumnState({ defaultState: { sort: null } });
this will bring back the drag&drop to the columns you had it prior to the sort.
Still trying to find a way to tell the grid to reorganize its indexes so we can keep the sort and enable the drag at the same time.
If you are using Managed Dragging (rowDragManaged={true}), you cannot drag any rows anywhere else because doing that will break the order of the rows as stated in the docs
The logic for managed dragging is simple and has the following
constraints:
Does not work when sorting is applied. This is because the sort order
of the rows depends on the data and moving the data would break the
sort order.

Using Autosuggest in Adf table

I'm using Autosuggest for one of my table column.The issue is when i use keyboard Up arrow or down arrow,instead of mouse for selecting the values,it is not selecting the values in the autosuggest popup but Its making a row selection in the table. I was looking for a work around for this. Do you have any insights or suggestions. environment Adf 11g R2.
First it is needed to press F2 for disable cell navigation mode. Then user need to press the up / down / left or right key for select value from the lists

rowdeselect event can't fire to save data when it is in last row in Extjs EditorGridPanel

I am using EditorGridPanel with cellEditor which acts nearly like Excel. We implemented Arrow Keys to move among rows and
columns. We do row validation when user moves from one row to another (specifically in rowdeselect event) and then save the
record. There is some issues are:
For the last row of the grid, rowdeselect event does not fire, as we do not have any other control after the grid.
rowdeselect event fires if we move from row to row using Tab, Enter & Arrow keys. But when user clicks on another row using mouse - events do not come in correct sequence, so focus moves to the new row, but earlier row not saved. Currently we solved this by calling stopEditing at the beginning of rowdeselect event.
We would like to know how we can solve these two issues and whether there are more robust ways to handle automatic grid saving.
You can fill free to check the problem in our site. -> http://www.softworksbd.com/swazilandlmis/yyyy_stockdata.php
1 ) First of all the event is not firing on the blur of the whole grid and not just the last row. try changing a row and clicking anywhere on the screen but the grid and you will see that no validation takes place (which means your rowdselect does not fire).
You should try and add a blue event to the whole grid that runs your validation scripts.
2) As far as I have checked the event is fired even on another row click so please explain exactly what you mean...
ps
I have viewed only this page in your application:

Resources