Programmatically setting the value after populating list

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    283 posts
    Member since:
    Jun 2010

    Posted 21 Mar 2012 Link to this post

    Hi.  I have 3 cascading dropdowns in my form, similar to the beta example.  Sometimes when I load my form, it may already be filled out.  Meaning I need to populate the menu with the proper items and then select the correct one. 

    My question is, I call the .read method to populate the datasource, but then how do I select the item.  I tried doing it in the datasource changed event but that did not work.  If I set the selection before refreshing the datasource, then it gets wiped out.  I'm not sure why it's not doing it in the changed event, seems like that should.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 23 Mar 2012 Link to this post

    Hello Kjell,

     
    From the Q1 2012 release of KendoUI the value() method will populate the combobox if it uses autoBind false functionality. Please give it a try and let me know what your findings are.

    Greetings,
    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!
Back to Top