-
28 Oct 2010 6:29 AM #1
Grid onRender and mouse events.
Grid onRender and mouse events.
I have set up a Grid, where the render event of the ColumnConfigs create a FlexTable to display in the Grid Cell. This works really well, and the grid properly displays all the flextables in the cells. All the key events seem to work properly. (Up, Down, Left, Right, etc....). However, none of the mouse events seem to get triggered (mousedown, etc...). It almost seems as if the FlexTable that has been rendered into the grid cell is absorbing the mouse event, preventing it from getting to the Grid.
If I click just outside of the drawn flextable in the grid cell (there is some padding), then the Grid does pick up the mouse event. Any ideas as to how I can force the mouse events to pass through the drawn flextable so that the Grid can see them?
-
28 Oct 2010 6:31 AM #2
A ColumnConfig does not fire any event, you probably mean a GridCellRenderer?
Try to increase the selector deepth:
Code:grid.getView().setRowSelectorDepth(20); grid.getView().setCellSelectorDepth(20);
-
28 Oct 2010 6:56 AM #3
You are correct, I meant GridCellRenderer. Setting the depth worked perfectly. thx.
Now I need to go look at the code and see what it means to set the cellsectiondepth.
-
28 Oct 2010 6:57 AM #4
When clicking somewhere, the grid tries to find the cell / row which belongs to the element you clicked. It just bubbules up the amount you configured. If you add large markup, which a table is, than the default depth to bubble up is not sufficient anymore
-
28 Oct 2010 7:03 AM #5
Similar Threads
-
Ext.Window mouse events
By Stju in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 12 May 2010, 8:44 AM -
Mouse events fired multiple times
By Glimpse in forum Ext GWT: DiscussionReplies: 5Last Post: 23 Sep 2009, 8:16 AM -
Mouse Events for FormPanel
By user4 in forum Ext GWT: Help & Discussion (1.x)Replies: 2Last Post: 26 Jan 2009, 5:49 AM


Reply With Quote