Search:

Type: Posts; User: bigmountainben

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. On your ColumnConfig object, set a renderer using...

    On your ColumnConfig object, set a renderer using setRenderer(new MyRenderer).

    MyRenderer is a class that implements GridCellRenderer, and returns the HTML.

    Ben
  2. Replies
    24
    Views
    19,193

    Sure, that would work too: enum MyEnum { ...

    Sure, that would work too:



    enum MyEnum {

    Admin(Util.getMessages().adminDesc());
    User(Util.getMessages().userDesc());
    ...
    }
  3. Replies
    24
    Views
    19,193

    You can also use the BeanModelMarker method: ...

    You can also use the BeanModelMarker method:


    @BeanModelMarker.BEAN(MyEnum.class)
    public class MyEnumModel implements BeanModelMarker { }


    And then you can use the BeanModel in your combo...
  4. Replies
    0
    Views
    1,325

    Custom sorting on a grid

    I can't seem to find a way to specify a custom sorter for a particular column. Anyone can point me in the right direction?

    Thanks!
    Ben
  5. [2.0m2] Store.add/update for item on Grid fails if item filtered out

    The issue issue manifest itself on a version of GXT 2.0-m2 built on May 19th, under MacOS X, GWT 1.6.4 in Hosted Mode (safari agent). From the stacktrace and the nature of the bug, it's likely that...
  6. Hi there, There are a couple ways to do it: ...

    Hi there,

    There are a couple ways to do it:

    When you build your Grid, in your ColumnConfig for the relevant column:



    ColumnConfig myColumn = new ColumnConfig("my", "My", 35);...
  7. [OPEN] Thanks Sven. It's even documented in...

    Thanks Sven.

    It's even documented in ColumnConfig:

    /**
    * A column config for a column in a column model.
    *
    * <p /> The column config is a configuration object that should only be used
    ...
  8. [OPEN] [CLOSED] ColumnConfig.setHidden does not appear to work after initial rendering

    Calling ColumnConfig's setHidden method does not work once a Grid has been rendered. It works if its called before, but not if it's called after. The documentation does not make mention of the fact...
  9. Thanks Sven!

    Thanks Sven!
  10. Safari (MacOS X 10.5.6)

    Safari (MacOS X 10.5.6)
  11. Read the first line.

    Read the first line.
  12. 2.0-m1 modifying label style on a combobox field messes up the empty field warning

    GWT 1.6, GXT 2.0-m1 (built as of 5/10/09), Hosted mode

    When you have a ComboBox field, and:
    - you style the label with a margin component
    - you set allowBlank to false

    The warning image will...
  13. I figured that's what you meant. That works,...

    I figured that's what you meant.

    That works, actually - but the Window should be listening to its children for resize events and do this for me.

    I am seeing this on Safari (and Hosted mode,...
  14. Doesn't fix it. To restate: the issue is that...

    Doesn't fix it.

    To restate: the issue is that when you collapse or expand the field set, the shadow for the entire window does not resize along with the window.
  15. public class Test implements EntryPoint { ...

    public class Test implements EntryPoint {

    public void onModuleLoad() {

    Window w = new Window();
    w.setHeading("my favorite variables");
    w.setWidth(500);
    ...
  16. The problem also manifest itself if I use the...

    The problem also manifest itself if I use the default, FlowLayout and a RowLayout. What kind of Layout is one supposed to used with auto-= height?
  17. [CLOSED] Window shadow not readjusting when the size of the Window changes

    popup = new Window();
    popup.setAutoHeight(true); //(and all the components in it too)

    Window has a FitLayout
    In the FitLayout, there is a LayoutContainer (call it form) with a FormLayout

    form...
  18. Ok thanks.

    Ok thanks.
  19. [CLOSED] setIntStyleAttribute on a TextField only affect the text box, not the label

    name.setEmptyText("A short description of the task");
    name.setFieldLabel("Some Label");
    // we have to do it at this level because otherwise gxt styles take over...
  20. 1.2.3 Parameterized classes cannot be marked as BeanModels

    I have a class ContentReference.

    If I parameterize it - class ContentReference<T extends ContentType> the BeanModel mechanisms (both the BeanModelMarker interface and BeanModelMarker.BEAN tag)...
  21. Replies
    11
    Views
    2,375

    This is not solved really

    Gents,

    Users hacking ext-all.css by hand is not a solution, and neither should it be a FAQ. You need to preface all GXT standard tag mods with a contextual selector (i.e. 'gxt' or something like...
  22. ButtonBar in a FormPanel has a 100 cellpadding - can it be changed?

    Hi,

    The title is pretty self-explanatory. Expanding a bit:

    1. I am using a ButtonBar to add a submit/cancel pair on a FormPanel (itself in a popup Window). Is this the right thing to do?

    2....
Results 1 to 22 of 47
Page 1 of 2 1 2