Hi,
I'm upgrading the kendo to the new one (Spring) and after that, I can't set the selected value for DropDown and Combobox.
It was ok before when i'm using the old version.
And its happen not only in chrome, but in all browser.
I'm using Visual Studio 2012 (MVC 4), and the new Jquery (1.9.1) and JQuery.Validate.Min.js
following is the code snippet:
@(Html.Kendo().DropDownList()
.Name("color")
.DataTextField("Text")
.DataValueField("Value")
.Value("2")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Black",
Value = "1"
},
new SelectListItem() {
Text = "Orange",
Value = "2"
},
new SelectListItem() {
Text = "Grey",
Value = "3"
}
})
)
It always selects 1 instead of 2?!
Any ideas why?
Thanks :)
I'm upgrading the kendo to the new one (Spring) and after that, I can't set the selected value for DropDown and Combobox.
It was ok before when i'm using the old version.
And its happen not only in chrome, but in all browser.
I'm using Visual Studio 2012 (MVC 4), and the new Jquery (1.9.1) and JQuery.Validate.Min.js
following is the code snippet:
@(Html.Kendo().DropDownList()
.Name("color")
.DataTextField("Text")
.DataValueField("Value")
.Value("2")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Black",
Value = "1"
},
new SelectListItem() {
Text = "Orange",
Value = "2"
},
new SelectListItem() {
Text = "Grey",
Value = "3"
}
})
)
It always selects 1 instead of 2?!
Any ideas why?
Thanks :)