Dropdown liats not working in appbuilder

9 posts, 1 answers
  1. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 06 Oct 2014 Link to this post

    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

    <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>
  2. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 07 Oct 2014 in reply to Alan Mosley Link to this post

    this problem is only in simulator, I found this worked fine when tested in device
    Thanks
  3. Kendo UI is VS 2017 Ready
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 08 Oct 2014 Link to this post

    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:
    <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.

     
  5. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 08 Oct 2014 in reply to Georgi Krustev Link to this post

    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
  6. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 08 Oct 2014 in reply to Alan Mosley Link to this post

    I should also add, that it still does not work in simulator.
    Thanks
  7. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 09 Oct 2014 Link to this post

    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
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  8. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 09 Oct 2014 in reply to Georgi Krustev Link to this post

    when I use it in simulator, it fills the bottom part of the screen WP8, see attachment
  9. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 09 Oct 2014 Link to this post

    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
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  10. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 09 Oct 2014 in reply to Georgi Krustev Link to this post

    Thanks
Back to Top
Kendo UI is VS 2017 Ready