herchenroder
22 Sep 2011, 12:04 PM
Totally stuck on this issue, hoping someone out there has seen this before...
We have a Grid<ModelData> to which we have added a GridFilters via .addPlugin
When you scroll with the scrollbars, the filter moves together with the columns of the grid.
But if you press tab while in any of the filter text boxes, and keep pressing tab to move off the screen's viewable area, the filter moves to the left while the columns do not.
We have tried trapping the tab key and setting the position of the grid but that has not proved successful.
final ListStore<ModelData> store; // Build the GXT Grid
assert loader != null : "Loader is null when rendering MultilineContainer";
store = new ListStore<ModelData>(loader);
grid = new Grid<ModelData>(store, columnModel);
grid.setStripeRows(true);
grid.addPlugin(this.filters);
grid.getView().setAutoFill(false);
grid.setColumnReordering(true);
grid.disableTextSelection(false);
grid.setSelectionModel(selectionModel);
grid.addPlugin(selectionModel);
filters is just
private GridFilters filters;
then in the constructor
this.filters = new GridFilters();
Is there any way to set the grid's positioning or to force the filter not to move when the users press tab?
We've tried
grid.getElement().getStyle().setPosition(Position.ABSOLUTE);
grid.getElement().getStyle().setPropertyPx("left", 200);
But that just moves the grid off the screen completely.
Thank you for any help you can provide.
We have a Grid<ModelData> to which we have added a GridFilters via .addPlugin
When you scroll with the scrollbars, the filter moves together with the columns of the grid.
But if you press tab while in any of the filter text boxes, and keep pressing tab to move off the screen's viewable area, the filter moves to the left while the columns do not.
We have tried trapping the tab key and setting the position of the grid but that has not proved successful.
final ListStore<ModelData> store; // Build the GXT Grid
assert loader != null : "Loader is null when rendering MultilineContainer";
store = new ListStore<ModelData>(loader);
grid = new Grid<ModelData>(store, columnModel);
grid.setStripeRows(true);
grid.addPlugin(this.filters);
grid.getView().setAutoFill(false);
grid.setColumnReordering(true);
grid.disableTextSelection(false);
grid.setSelectionModel(selectionModel);
grid.addPlugin(selectionModel);
filters is just
private GridFilters filters;
then in the constructor
this.filters = new GridFilters();
Is there any way to set the grid's positioning or to force the filter not to move when the users press tab?
We've tried
grid.getElement().getStyle().setPosition(Position.ABSOLUTE);
grid.getElement().getStyle().setPropertyPx("left", 200);
But that just moves the grid off the screen completely.
Thank you for any help you can provide.