PDA

View Full Version : Auto-Complete and Grid



techno_adi
21 Sep 2006, 4:18 AM
Hi
Can any one give me a hint as to how can i bind my auto-complete control to the editable coloumn of the grid?

Thanks

jack.slocum
21 Sep 2006, 12:11 PM
I haven't tried this yet, but theoretically there's no reason it can't be done.

Suppose you create a TextEditor. You could bind the AutoComplete (AC) to the editors element.



var editor = new YAHOO.ext.grid.TextEditor();
var ac = new YAHOO.widget.AutoComplete(editor.element.dom,
'your-ac-container', yourDataSource);


I don't see why it wouldn't work. You will probably have to bump the z-index of your AC container.