Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug? enableHilite in ListGrid

    Hello,

    I am using smartGWT 3.0 + GWT 2.4 in Development mode.

    I have an unexpected behaviour in a ListGrid:

    ListGrid l = new ListGrid();
    l.enableHiliting();
    if(l.isCreated()){
    SC.showPrompt("Create = true");
    }

    A call to 'enableHiliting' function makes to change the state of 'isCreated=true' also when the ListGrid has not been already drawn.

    Due to this change in variable 'isCreated' an exception is fired when trying to change some properties like 'gridComponents':

    Cannot change configuration property 'gridComponents' to [Ljava.lang.Object;@ca1922 after the component has been created.

    Is this an expected behaviour or a bug?

    #2
    Expected - you would not normally have to use that API before creation, so just avoid calling it until you've completely other initialization steps.

    Comment


      #3
      Ok&thanks.

      Nevertheless, what means "created"? I thought that created=drawn..

      Comment

      Working...
      X