PDA

View Full Version : CheckBox Tree - not overlining checked boxes



talha06
6 Mar 2010, 4:26 PM
Hello to everyone,

As I wrote in title, everything works great except overlining the checkbox's text when they checked. I'm using static data(nodes) for my tree panel.

Here's my code, can someone help me, thanx in advance.



var tree = new Ext.tree.TreePanel({
id : 'myTree',
renderTo : document.body,
frame : true,
border : true,
title : '<b>Yap?lacaklar Listesi</b>',
autoHeight : true,
width : 200,
useArrows : true,
animate : true,
enableDD : true,
rootVisible : true,
loader : new Ext.tree.TreeLoader(),
root : new Ext.tree.AsyncTreeNode({
text : '<b>??ler</b>',
children : children
}),
rootVisible : true,
listeners: {
'checkchange': function(node, checked){
if(checked){
node.getUI().addClass('complete');
}else{
node.getUI().removeClass('complete');
}
}
},
buttons: [{
text: '<b>Bitirilmi? ??leri Getir</b>',
handler: function(){
var msg = '', selNodes = tree.getChecked();
Ext.each(selNodes, function(node){
if(msg.length > 0){
msg += ', ';
}
msg += node.text;
});
Ext.Msg.show({
title: 'Bitirilmi? ??ler',
msg: msg.length > 0 ? msg : 'Yok',
icon: Ext.Msg.INFO,
minWidth: 200,
buttons: Ext.Msg.OK
});
}
}]
});

talha06
7 Mar 2010, 9:52 AM
Any answers?? Or is this a bug??