I am wondering if anyone can shed some light on why setting an option label for a Kendo Dropdown affects the selected value, and how this can be avoided.
The setup is that I have a select list that's populated by ASP code. The selected value is set in the codebehind.
Everything works fine unless I specify an option label. When I do that, the selected value changes. Here it is in action:
console.log("Value before: " + $("#dropdownlist").val());
$("#dropdownlist").kendoDropDownList({
optionLabel: {
text: "-- Select An Option --",
value: 0
}
});
console.log("Value before: " + $("#dropdownlist").val());
Console output:
Value before: 2
Value after: 1
When I start with value = 3, the optionLabel sets the new selected value to 2.
Thanks in advance for your help.