Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckBox setTitle doesn'twork after components has benn rendered #47

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a textItem with a change handler like in tab showcase example
and use it to change the checkbox title

    textItem.addChangedHandler(new ChangedHandler() {  
        public void onChanged(ChangedEvent event) {
            checkBoxItem.setTitle((event.getValue() == null ? "Text":
event.getValue() + ""));
            checkBoxItem.updateState();
            }  
        });   

What is the expected output? What do you see instead?

CheckBox text has to change but nothing happens


What version of the product are you using? On what operating system?

SmartGwt 1.0b1, Gwt 1.5.3 ,WinXP


Original issue reported on code.google.com by d.debort...@gmail.com on 16 Dec 2008 at 11:01

@GoogleCodeExporter
Copy link
Author

Use checkboxItem.redraw() rather than updateState()
updateState() is intended to refresh the css styling applied to the form item 
(and
make some other appearance changes), but it won't reliably refresh titles / 
adjust
overflow, etc

Original comment by smartgwt...@gmail.com on 21 Feb 2009 at 1:10

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Issue 196 has been merged into this issue.

Original comment by sanjiv.j...@gmail.com on 13 Apr 2009 at 6:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant