PDA

View Full Version : Is possible to add an asp.net control to an toolbar?



franklt69
31 Dec 2006, 8:06 AM
Hi I am doing an toolbar, and I have doubts if I can to add a asp.net control for instance a Dropdownlist to a toolbar?

I read addpublic function add(Mixed arg) but I don't know how I can do it, any hint please

kind regards
Frank

franklt69
1 Jan 2007, 1:46 PM
I found it

var feedtb = new YAHOO.ext.Toolbar('myfeeds-tb');
feedtb.addButton({id:'add-feed-btn', text: 'Save', className: 'add-feed', click: this.showAddFeed.createDelegate(this)});
var textfield = document.getElementById('textBox6');
feedtb.add(textfield);

here textbox6 is an asp.net control


kind regards
Frank