I have a ListGrid component to which I want to add some extra space for the layout. For some strange reason if I do so, AFTER I had set setAutoFitWidth() I get an exception:
Can anyone enlighten me, as to why this is?
I have the problem that I have several derived classes so that I can't change the order of calling setExtraSpace and setAutoFitWidth at random.
I'm using GWT 2.3.0 and SmartGWT 2.4.
The following test programm demonstrates the behaviour. If you switch the 2 setXXX lines it either works or doesn't.
Code:
Error :Cannot change configuration property 'extraSpace' to 4.0 after the component has been created
I have the problem that I have several derived classes so that I can't change the order of calling setExtraSpace and setAutoFitWidth at random.
I'm using GWT 2.3.0 and SmartGWT 2.4.
The following test programm demonstrates the behaviour. If you switch the 2 setXXX lines it either works or doesn't.
Code:
import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.widgets.grid.ListGrid; public class MainEntryPoint implements EntryPoint { @Override public void onModuleLoad() { ListGrid grid = new ListGrid(); grid.setAutoFitWidth("column0", true); grid.setExtraSpace(4); } }
Comment