PDA

View Full Version : IE - Checkbox in a toolbar starts Unchecked



henrique-suave
21 Jun 2007, 5:49 AM
I'm experiencing the exact same problem as this other posts.

http://extjs.com/forum/showthread.php?t=6696
http://extjs.com/forum/showthread.php?t=6624

My checkbox starts unchecked on IE, but it works fine on firefox.
I added the checkbox to the toolbar of the grid component. I set to start as checked and it works fine on Firefox, but it initiates unchecked on IE.

var cbpm = new Ext.form.Checkbox({
autoCreate: true,
checked:true,
name:'cb_pm',
change: myReload
});

I even try his solution but I'm probably doing it wrong.
checkBoxVisible.setValue(true);

And the interesting part is that, on the forms exemple, on my server, the dynamic.html works perfectly. I compare with my checkbox code and it's the same, but somehow on the toolbar it has this issue.

I'm probably doing something wrong, because I'm kind of new to yui-ext.

If someone could point me on the right direction, I'd appreciated.

THANKS

fantasyding
26 Jun 2007, 3:20 AM
it may be a bug of IE, in Jack's code ,in the class of Ext.Toolbar.Item ,the method render() has a very strange program !!!
render : function(td){
this.td = td;
td.appendChild(this.el);
}
if you change it to :
render : function(td){
this.td = td;
this.el.innerHTML = this.el.innerHTML;
td.appendChild(this.el);
}
or
render : function(td){
this.td = td;
td.innerHTML = this.el.outerHTML;
}

tryanDLS
26 Jun 2007, 10:44 AM
Have you tried this 1.1b?

fantasyding
27 Jun 2007, 9:12 PM
i use the ext-1.1-beta1