MVVM array bind DropDownList

5 posts, 0 answers
  1. CORNEL
    CORNEL avatar
    44 posts
    Member since:
    Jan 2012

    Posted 21 Jun 2015 Link to this post

    Hi Guys,

    Im using Kendo MVVM to bind a row template to a datasource array and all works fine. But in in the row template i have a dropdownlist that im trying to bind to a datasource but cant get it to work properly. 

    I have tried binding the dropdownlist to the kendo observable viewmodel variable and also to a field directly in array datasource but both approaches do not work.

    I would like to know if this scenario is supported in Kendo MVVM to bind a dropdownlist inside a datasource array?

    Here there is a sample prototype http://dojo.telerik.com/@silviu/ImoFe/14

    Cheers!

     

     

     

     

  2. CORNEL
    CORNEL avatar
    44 posts
    Member since:
    Jan 2012

    Posted 22 Jun 2015 Link to this post

    Hi Guy, 

    I noticed that wrapping the source array for the dropdownlist in a datasource works as expected.

    But somehow the plain array as source doesnt work in MVVM array binding mode as it does for single dropdownlist binding.

    Wonder if this is a bug or known limitation?

    Cheers!

     

  3. Kendo UI is VS 2017 Ready
  4. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 24 Jun 2015 Link to this post

    Hello CORNEL,

    This is the expected behavior as the widget will expect a dataSource instance to be used when wrapped in a template. Currently we do not plan on introducing a change in this behavior.

    Thanks for the understanding.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. CORNEL
    CORNEL avatar
    44 posts
    Member since:
    Jan 2012

    Posted 24 Jun 2015 in reply to Kiril Nikolov Link to this post

    Hi Kiril,

    I see.. and is good to keep in mind this distinction when implementing the code.

    Thanks for clarifying my query.

    Cheers! 

     

     

  6. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 24 Jun 2015 Link to this post

    Hello CORNEL,

    You are most welcome.

    In case something else comes up - do not hesitate to contact us.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready