PDA

View Full Version : Photo Organizer w/ Tree and AsyncTreeNode?



cvillaronga
18 Oct 2007, 7:55 AM
hi,

I was followed the Photo Organizer example step by step, but I need to store the changes in a DB via AJAX, my problem is, that when the changes are reloaded by AsyncTreeNode.reload() some features does not apply to the node ( the image icon and quicktip ) in current tree.

How can I use those templates from the Photo Organizer example to the root (AsyncTreeNode) reload process?

best regards.

cvillaronga
19 Oct 2007, 5:36 AM
i was follow the code from " is there a way to add tootip options besides text for treenodes?" to register Ext.QuickTips.

thanks jack.



Ext.tree.TreeNodeUI.prototype.initEvents =
Ext.tree.TreeNodeUI.prototype.initEvents.createSequence(function(){
if(this.node.attributes.imagefile){
this.node.attributes.icon = this.node.attributes.imagefile;
this.node.attributes.cls = 'usuarios-node';
this.node.attributes.qtip= new String(qtipTpl.applyTemplate(this.node.attributes));
var o = this.node.attributes.qtip;
o.target = Ext.id(this.textNode);
o.text = this.node.attributes.qtip;
Ext.QuickTips.register(o);
}
});