This is a migrated thread and some comments may be shown as answers.

Binding and the text value

1 Answer 141 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
sitefinitysteve asked on 24 Oct 2011, 02:17 AM
Ok, so Combo functions like autocomplete right, you type, then see the items appear in the combo, then you click, one, and handle the change event right?

So how can I have my DS go and get a specific item, and have the combo update itself where it's change event is fired

Use-case is that I have a list of items I've previously found with the combo...just a UL\LI hanging out somewhere else on my page.  So I want to click one of those and have it re-assigned to the combo (so then the combos change event is fired and my chain of events gets re-kicked off)

I can't seem to get it to work though...I can assign the .text or .value fine...but that doesn't affect the DS at all, and my change event is tied to this:
change: function (e) {
            if (this._current) {
                var item = this.dataSource.view()[this._current.index()];

Steve

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 26 Oct 2011, 02:10 PM
Hello Steve,

 
I am not sure what your goal exactly is depending on the given information. Could you provide a runnable example? Thus I will be able to understand what you are trying to achieve.

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Georgi Krustev
Telerik team
Share this question
or