Alan Mosley
Top achievements
Rank 1
Alan Mosley
asked on 07 Oct 2014, 01:50 AM
I have quite simple dropdown in a hybrid app, but when selecting id does not select. when trying for the second time you can see that 2 options are selected but choice has not changed in collapsed view.
Thanks
Thanks
<div id="near-km2"></div><script> function load() { var kmData = [{ text: "5km", value: "5" }, { text: "10km", value: "10" }, { text: "25km", value: "25" }, { text: "50km", value: "50" }]; $("#near-km2").kendoDropDownList({ dataTextField: "text", dataValueField: "value", dataSource: kmData, index: 1 }); }</script>8 Answers, 1 is accepted
0
Alan Mosley
Top achievements
Rank 1
answered on 08 Oct 2014, 04:16 AM
this problem is only in simulator, I found this worked fine when tested in device
Thanks
Thanks
0
Hello Alan,
In general, the DropDownList widget supports only input and select HTML elements. Initializing a DropDownList over a div element is not correct and will cause many unexpected behaviors. I would suggest you change your code like this:
Regards,
Georgi Krustev
Telerik
In general, the DropDownList widget supports only input and select HTML elements. Initializing a DropDownList over a div element is not correct and will cause many unexpected behaviors. I would suggest you change your code like this:
<input id="near-km2" /><script> function load() { var kmData = [{ text: "5km", value: "5" }, { text: "10km", value: "10" }, { text: "25km", value: "25" }, { text: "50km", value: "50" }]; $("#near-km2").kendoDropDownList({ dataTextField: "text", dataValueField: "value", dataSource: kmData, index: 1 }); }</script>Regards,
Georgi Krustev
Telerik
Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.
0
Alan Mosley
Top achievements
Rank 1
answered on 08 Oct 2014, 03:02 PM
Thanks., I did have it as a input, but changed to a div after seeing someone else having that way, I was willing to try anything.
Thanks
Thanks
0
Alan Mosley
Top achievements
Rank 1
answered on 08 Oct 2014, 03:03 PM
I should also add, that it still does not work in simulator.
Thanks
Thanks
0
Hello Alan,
I tried to replicate the issue, but widget works as expected in the simulator. Here is a screencast of my test. Let me know if I am missing something.
Regards,
Georgi Krustev
Telerik
I tried to replicate the issue, but widget works as expected in the simulator. Here is a screencast of my test. Let me know if I am missing something.
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Alan Mosley
Top achievements
Rank 1
answered on 09 Oct 2014, 11:07 AM
0
Accepted
Hello Alan,
I was able to replicate the issue locally thanks to the screenshot. Thank you for the additional information.
I forwarded the problem to the dev team responsible for the AppBuilder simulator. It will be addressed soon.
As a gratitude for your involvement I updated your Telerik points.
Regards,
Georgi Krustev
Telerik
I was able to replicate the issue locally thanks to the screenshot. Thank you for the additional information.
I forwarded the problem to the dev team responsible for the AppBuilder simulator. It will be addressed soon.
As a gratitude for your involvement I updated your Telerik points.
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Alan Mosley
Top achievements
Rank 1
answered on 09 Oct 2014, 12:16 PM
Thanks