Search Type: Posts; User: Ersmarker
Search: Search took 0.02 seconds.
-
21 May 2012 10:47 PM
Jump to post Thread: Grid trouble in Chrome 19 by Ersmarker
- Replies
- 16
- Views
- 4,973
We are aware of the issue with Chrome 19 which is causing 2px extra column width per column for both GXT 2 and 3. It is related to this bug http://code.google.com/p/chromium/issues/detail?id=124816....
-
21 May 2012 10:44 PM
Jump to post Thread: Expand/Collapse Grid panel by Ersmarker
- Replies
- 2
- Views
- 916
Do you have a panel that contains a grid, and you want to a listen for when that panel is expanded/collapsed?
Then you can listen for the Events.Collapse & Events.Expand on that panel. -
17 May 2012 5:29 AM
- Replies
- 2
- Views
- 1,259
You can style each row with GridViewConfig.
grid.getView().setViewConfig(new GridViewConfig() {
public String getRowStyle(ModelData model, int rowIndex, ListStore<ModelData> ds) {
... -
17 May 2012 3:09 AM
Jump to post Thread: auto scrolling the scroll bar? by Ersmarker
- Replies
- 2
- Views
- 614
You can create a custom LiveGridView with this function.
class MyLiveGridView extends LiveGridView {
public void scrollToRow(int row) {
liveScroller.setScrollTop(getCalculatedRowHeight()... -
23 Mar 2012 5:49 AM
Jump to post Thread: Custom icons in tree Model by Ersmarker
- Replies
- 2
- Views
- 770
You should use the iconprovider.
tree.setIconProvider(new ModelIconProvider<ModelData>() {
@Override
public AbstractImagePrototype getIcon(ModelData model) {... -
2 Mar 2012 4:47 AM
Jump to post Thread: Paging ComboBox issue by Ersmarker
- Replies
- 1
- Views
- 850
This is now fixed in SVN
-
28 Feb 2012 6:05 AM
Jump to post Thread: Tab header width change by Ersmarker
- Replies
- 4
- Views
- 1,111
Check if you have set
panel.setResizeTabs(true);
If you have, try setting it to false. -
27 Feb 2012 7:01 AM
Jump to post Thread: Tab header width change by Ersmarker
- Replies
- 4
- Views
- 1,111
The TabItem text can be HTML, so you can create a span element with a custom width.
TabItem t1 = new TabItem();
t1.setText("<span style=\"width:150px\"> </span>");
... -
27 Feb 2012 6:48 AM
- Replies
- 2
- Views
- 446
Try setting HideMode.OFFSETS on the TabItem containing the Grid.
tab.setHideMode(HideMode.OFFSETS); -
27 Feb 2012 6:24 AM
- Replies
- 3
- Views
- 1,426
Change
quickTip.setToolTip(toolTipConfig);
to
quickTip.update(toolTipConfig)
With setTooltip you are creating a new tooltip on your QuickTip component. -
22 Feb 2012 4:27 AM
- Replies
- 2
- Views
- 879
int minValue = 3;
NumberField nf = new NumberField();
nf.setAllowBlank(false);
nf.setMinValue(minValue);
nf.setValue(minValue); -
1 Feb 2012 4:02 AM
- Replies
- 2
- Views
- 678
You can listen to the ViewReady event and then start the editor
grid.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void... -
1 Feb 2012 3:09 AM
Jump to post Thread: ViewPort by Ersmarker
- Replies
- 1
- Views
- 769
You can set a background picture using css.
java:
Viewport vp = new Viewport();
vp.addStyleName("myBackground");
css: -
1 Feb 2012 2:55 AM
Jump to post Thread: on module load by Ersmarker
- Replies
- 2
- Views
- 740
Move you code in onModuleLoad to a seperate method (start() in my example)
In onModuleLoad create a window with a button that lunches your app.
public void onModuleLoad() {
final... -
1 Feb 2012 1:57 AM
- Replies
- 3
- Views
- 840
Use Viewport. It will automatically fill the browser window and monitor browser window resize.
-
30 Jan 2012 7:01 AM
- Replies
- 1
- Views
- 447
You can set the alignment of a toolbar by:
toolBar.setAlignment(HorizontalAlignment.RIGHT/LEFT); -
30 Jan 2012 6:29 AM
- Replies
- 1
- Views
- 819
The ComboBox will display the value from difined by
templateCombo.setDisplayField("name");
I guess you don't have that property in your ModelData
Try changing to:
... -
20 Jan 2012 1:02 AM
- Replies
- 2
- Views
- 894
You can create a GridCellRenderer that returns value you want to display from you object.
-
18 Jan 2012 11:42 PM
- Replies
- 1
- Views
- 603
You can set style attribute float: right on the combobox
SimpleComboBox cb = new SimpleComboBox();
cb.setStyleAttribute("float", "right"); -
17 Jan 2012 7:15 AM
- Replies
- 7
- Views
- 1,217
Maybe I don't understand your second issue, but...
don't set an editor in the columnmodel for the columns you don't want to edit. -
17 Jan 2012 5:23 AM
- Replies
- 7
- Views
- 1,217
For the column using TreeGridCellRenderer you can override the getTemplate method of the TreeGridView and "insert" the tip.
final RegExp regExp = RegExp.compile("<span unselectable=\"on\"... -
17 Jan 2012 2:47 AM
- Replies
- 7
- Views
- 1,217
You can use QuickTip.
You can see an examplein the BasicGrid example for the Change column:
http://www.sencha.com/examples/pages/grid/grid.html -
17 Jan 2012 12:17 AM
- Replies
- 8
- Views
- 1,888
The frame.addLoaderHandler was added in GWT 2.3
-
16 Jan 2012 12:48 AM
Jump to post Thread: Remplir une grille by Ersmarker
- Replies
- 1
- Views
- 762
Take a look at the Basic Grid Example. It should contain all the information you need.
http://www.sencha.com/examples/pages/grid/grid.html -
16 Jan 2012 12:38 AM
- Replies
- 1
- Views
- 679
Hi.
You can set a custom storeSorter with a custom Comparator to the store:
store.setStoreSorter(new StoreSorter<ModelData>(new Comparator<Object>() {
@Override
...
Results 1 to 25 of 118
