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

MVVM won't bind Drop Down List to zero value

2 Answers 67 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 2
Mike asked on 21 May 2012, 11:38 PM
If I have a list of items that I'm trying to bind to and zero happens to be the value of one of the items, the drop down list will not select the proper item if an optionLabel is set. Is this being addressed in an upcoming update?

http://jsfiddle.net/stuqc/10/ 

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 22 May 2012, 01:38 PM
Hello Mike,

 
Thank you for drawing our attention to this issue. I confirm it as a bug, which is already addressed and the fix will be included in the next internal build of KendoUI. For now you can overcome this problem with setting the value of the DDL as a string:

var viewModel = kendo.observable(
    {
        ProductId: "0",
        ItemId: 2
    });
I have updated your Telerik points as a gratitude for your involvement.

Kind regards,
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!
0
Mike
Top achievements
Rank 2
answered on 22 May 2012, 07:58 PM
Thanks Georgi, that solved my issue for now.
Tags
MVVM
Asked by
Mike
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Mike
Top achievements
Rank 2
Share this question
or