dear smartgwt community members,
I'm havong trouble setting "checked" initial state for a button with SelectionType.CHECKBOX action type.
please consider following code
Button toggle = new Button();
toggle.setActionType(SelectionType.CHECKBOX);
toggle.setState(State.STATE_DOWN);
that is the only way how to set initial state to "checked" that I found. However when I forst hit the button, it stays down, no matter what I do and goes up with the second click.
Is there another way to set the initial state to "checked", other than creating the button and firing the onClick event manually (which is not what I'm looking for, as it adds overhead to application intial state startup - EDIT: which actually doesn't work either, because the button stays unchecked even so!!)
thank you very much,
-- peter
I'm havong trouble setting "checked" initial state for a button with SelectionType.CHECKBOX action type.
please consider following code
Button toggle = new Button();
toggle.setActionType(SelectionType.CHECKBOX);
toggle.setState(State.STATE_DOWN);
that is the only way how to set initial state to "checked" that I found. However when I forst hit the button, it stays down, no matter what I do and goes up with the second click.
Is there another way to set the initial state to "checked", other than creating the button and firing the onClick event manually (which is not what I'm looking for, as it adds overhead to application intial state startup - EDIT: which actually doesn't work either, because the button stays unchecked even so!!)
thank you very much,
-- peter
Comment