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

DropDownList only firing databound, open and close

5 Answers 172 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CS
Top achievements
Rank 2
CS asked on 28 Oct 2015, 09:34 AM

I recently have the problem in a grid where I used a dropdownlist as an editor. The datasource is looking as it should I have a string as text and a string as value. I used the "Events" Demo from the DropDownList demos to track all the events. So when I click on the DropDownlist the first time the "databound" event is called. Would be better if open was calles also but that is not the problem.

The major problem is that when I click on some value, the close event is fired, not the select nor the change, only close, every time. When I navigate over the list with the keyboard the select and change is fired but not when I click on it.

Also, I was not able to register a click event manually on the li's myself, only a mousedown, but then I have to get all the values myself and I have to fire all the events manually also.

I also have another grid where the DropDownGrid shows normal behaviour only in this grid it doesn't seem to work but I already ran out of options to debug it.

5 Answers, 1 is accepted

Sort by
0
CS
Top achievements
Rank 2
answered on 28 Oct 2015, 12:16 PM

Since I'm using it within a grid in a hybrid app, it seems to work on iOS but after successfully selecting one dropdown list, the next list throws in error.

TypeError: true is not a function (evaluating 'i[e].isNew()')

0
CS
Top achievements
Rank 2
answered on 28 Oct 2015, 12:26 PM
The TypeError seems to occur during _change after sync when created is fired.
0
Alexander Valchev
Telerik team
answered on 30 Oct 2015, 08:26 AM
Hi Stefan,

I tried to reproduce the behaviour that you talk about in the DropDownList events demo but to no avail.

On my side the dataBound event fires initially because the list of data items is rendered initially. When the user clicks on the DropDownList the open event is fired as expected. When I click on an item the select, change and close events are fired.

Please see the following screen cast which demonstrates the aforementioned event sequences:
  • http://screencast.com/t/T8em63JDe

What am I missing? How your setup differs from the demo page?

Looking forward to your reply.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
CS
Top achievements
Rank 2
answered on 30 Oct 2015, 09:04 AM

One thing that might add to the crazyness of this problem might be the surrounding since I'm using the dropdownlist inside a grid inside a hybrid app on both windows desktop and iOS. I actually had the example code copied into the hybrid app with the result that only open and close where fired. Of course the datatext and datavalue fields where different and such but the rest was the same.

I somehow managed now to get at least into the select event, don't ask me how because I do not know. In the select I prevent default to not go to change because that cause kendo to throw an error and then I set all values manually in the select. It is really messy but I can't help it.

0
Alexander Valchev
Telerik team
answered on 03 Nov 2015, 08:37 AM
Hello Stefan,

In order to help you I will need a more detailed information which includes a relevant to the issue code snippets, Kendo UI version that you use, the errors that you receive and steps that you perform to address the problem.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
CS
Top achievements
Rank 2
Answers by
CS
Top achievements
Rank 2
Alexander Valchev
Telerik team
Share this question
or