Sencha GXT3 - Grid Column Header: Doubleclick Handler between two column headers - gwt

I have the following problem:
customer wants Excel like behaviour on a table. When double-clicking on the space between two column-headers, the column should be sized like the biggest text inside that column.
Question: Is there a build in GXT function to add a Handler to the space between two column headers? I havent found sth. like that, browsing the documentation of grid...
Additional Information: GXT: 3.0.1 GWT: 2.5.1
Thank you very much!

No, it doesn't seem GXT exposes any handlers for actions on the column separators. A possible solution would be to have a option in the column drop down. There is an aricle about that here: http://greatlogic.com/2014/06/02/autofit-column-width-in-a-gxt-grid/

Related

MUI DataGrid ColumnDef: the row is not available on the valueOptions prop of the column definition

I am using a DataGridPro component with different columns.
One one the columns is defined like this:
This issue is that I am trying to understand why the row is not available in the valueOptions prop of the column definition.
I would like to be able to populate the choices based on a list that is available on the row in another field.
But I get this error when I try to read the row:
Can you please help? The grid is populated with lots of rows coming from an api fetch.
Every other column is working fine accept this one.
Thank you.
I discovered that it was my bad. My column object was used twice with different parameters and so, yes, the row was not available for the second case.

Oracle Apex 5.1: Interactive Grid Target Specific Cell

I'm working on interactive grid in Oracle Apex 5.1. My problem is: How can I target a specific cell of their grid (not the column), using JQuery, in order to change some properties like readonly or other?
I found some (maybe weired) kind of workaround:
In PageDesigner add every Column a unique class.
Use javascript to get the record(the row) you want to change. form the record get the unique RecordID.
Then combine both in a jquery selector to get the cell
$("[data-id='AAE6TDAAFAAPTP1AAd'] .GRUND_INFRA").addClass("is-readonly")
with "AAE6TDAAFAAPTP1AAd" as the RecordID and "GRUND_INFRA" as the ClassId of the Column

How to Create a Multi-Column Custom Content Element

I'm trying to create a custom two-column content element in Typo3 Neos. I'm aware that Neos is shipped with multi-column functionality, but for this particular case I need to create my own custom content element.
So far I've been able to create one of the columns (see below gist for code). However, as soon as I try to add the second column, the page just turns blank and no further changes can be made.
Gists
1 column activated (working properly): https://gist.github.com/anonymous/c5f33c7923faae26aa1a
2 columns activated (not working): https://gist.github.com/anonymous/85fc6994e9e2c5892a11
Any idea why that is happening, or how to solve this / build a multi-column custom content element in Neos?
I found the solution! I simply had to execute the following flow command to create the missing node:
./flow node:autocreatechildnodes --node-type Daniel.MultiColumn:TwoCol

Is there a hover Event for a table row in a TableViewer

i have a JFace table-viewer, which consists of large number of rows, i thought that it would be better if there is a short description for each row,as a workaround i was trying to implement doubleclick listner but that's not apt to my need,i don't know if there is an event like hover for this,which shows a tooltip containing a brief info about the particular row.
The answer to this question depends somewhat on the exact implementation of your table viewer. Having said that, the primary options are:
Add a MouseTrackListener to the underlying table
Add a SWT Listener for SWT.MouseHover to the underlying table
If you use a CellLabelProvider, have a look at the various getToolTip...(Object) methods
For the first two, you have to figure out the row element yourself - look at event.item.getData(), whereas that is provide to you in the last option...

Selecting different columns in SWT Table, using JFace TableViewer

I have a 2-column SWT Table that uses TableViewer. Trouble is that I can only select (and edit) cells in the first column -- clicking on the second column does nothing.
I read from somewhere (lost the link) that there's no easy way to get such functionality (!) -- you're supposed to mess around with several extra concepts if you want to select (and edit) different columns in your table.
This snippet
(http://www.goneeded.com/snippet/eclipse/JFace/Viewers/Snippet035TableCursorCellHighlighter.html)
seems to be relevant, but it's not clear which part of it is necessary and it has depenendencies to other snippets. I tried to get it working but it did nothing.
Seems that new table editing and cell-selecting features were added in Eclipse 3.3 -- is there a tutorial or smth available on how to use them? The snippets are too cryptic for me.
You should be able to edit and select cells independently. You might have the SWT.FULL_SELECTION style bit set on the Table constructor. That forces every selection to span the whole row instead of a single cell.
I'd check out this tutorial for more on TableViewers:
http://www.eclipse.org/articles/Article-Table-viewer/table_viewer.html