I'm lookin for a way to drag a group of selected rows using jqGrid.
Look at http://trirand.com/blog/jqgrid/jqgrid.html. Choose on the left tree "New in Version 3.6" and then "Drag and Drop Rows".
If you means "drag a group of selected rows" inside one jqGrid table choose "Sortable Rows" on the same demo page. If you need this feature it can be interesting to look at jqGrid disable sortablerows where I describe how one can allow only selected rows be sortable (per drag a drop)
Related
This might be a rather simple question to answer.
I'm using Ag-Grid with React (ag-grid community + enterprise)
I noticed that if I right click on a row and I select an action on the context menu that appears, it will apply the action to the row that was actually selected and not the one I right-clicked on. How can I select a row with a right-click?
I will add details of my code on demand if needed. Thanks in advance.
You can hook in cellContextMenu grid event and select the corresponding row as the first thing before proceeding to the rest of the logic. Something like this:
<AgGridReact onCellContextMenu={event => event.node.setSelected()}>
Does ag-grid support separating row selection from checked checkboxes?
My users need to select a row (click on it, or keyboard nav) to see further details about the row. Then they need to check the checkbox (or not) to select the row for later export to Excel.
So for example, they'll click every row to see the further details, but only check some of the checkboxes for later export. Is this supported?
If not, what would be a good approach to implement? Add my own checkboxes to the first column?
You can set suppressRowClickSelection to true when you want checkbox selection, and don't want to also select when the row is clicked. If true, rows won't be selected when clicked.
You can read more about this here - https://www.ag-grid.com/javascript-grid-selection/
You can use ag-Grids selection capabilities for the checkbox selection and then use the onRowClicked prop to do a different select on row click. I'm doing just this (but with onRowDoubleClicked.
You still want to set suppressRowClickSelection to true.
I would like to know if it is possible to create a dynamic column in Tableau that will change based on quick filter selection.
Example:
Tableau sample screenshot
Try using parameters to select the category. This will give you step by step directions.
Doing this is as simple as it looks.
Assuming that you're using a query to fetch data, make sure the column on which you want to apply filter is available in the select statement.
Next, go to Sheets and drag the field into Filters section, right click on it and select Show filter
The filter will be visible on the right pane and can be used to alter the data depending upon the values / ranges selected.
Also, filters on Tableau give you a host of options to select from - dropdowns, radio buttons, check boxes, sliders etc etc...
I already have a table - CellTable, with single selection model and i used onSelectionChange to find when row was clicked
Next I added to that column which containes check box
and here comes my problem
if i use single selection model, when i tick one row, other row become unticked
i tried to switch to multiselection model, but in this case, i can't click on row, and onSelectionChanges is executed only when i click on my check box, but i can tick more than one box
is any chance how i can have both - multiselection and clickable row?
regards
Yes it is possible.
But I am suprised that it doesn't work because the default behavior of the MultiSelectionModel should be that the row is selected as soon as you click it. However maybe in the presence of a CheckBoxCell column it is different.
Anyways you have to check following JavaDocs:
Constructor of the CheckboxCell
DefaultSelectionEventManager
I have a cross tab inside a subreport. I need to fetch the grandtotal of cross tab and display it in a textobject under the cross tab. Any clue how this can be achieved ?
Drag and drop the database or formula field you want into the detail section of the report. (Remove any unwanted guidelines / column headings that this generates.)
Right-click the inserted detail section item and select Insert > Summary... . Specify Sum, to be inserted in the same section as the datagrid is located. (Remove the detail section item, if you don't want it in the detail section.)
The total field can be dragged and dropped into position under the data grid. If you specifically want it in a text field, then insert a blank text field into the report under the data grid and then drag and drop the total field into it.
Do you have any criteria or special formula in the crosstab? If not, then you could probably just make a new formula sum({table.field}) and put it wherever you like.
(If this subreport is grouped, you may want to use sum({table.field},{table.group}))