The value of the variable ClimateDropDown is undefined in the following, which causes an error when I try to call ClimateDropDown.value(). The dropdownlist is created properly and gets initialized with the data from the remote data source.
<input id="ClimateDropdown" />
.......
$("#ClimateDropdown").kendoDropDownList(
{
dataTextField: "Name",
dataValueField: "NodeID",
dataSource:
{
transport:
{
read: "JSONClimateSpaceNodes.aspx",
dataType: "json"
}
}
}
);
......
var ClimateDropDown = $("#ClimateDropDown").data("kendoDropDownList");
$.get("JSONIndoorClimate.aspx", "s=" + ClimateDropDown.value(), IndoorClimateResponse);
I am sure I am overlooking something simple and will appreciate a quick pointer to get me on the right track.
Thanks/Anker
<input id="ClimateDropdown" />
.......
$("#ClimateDropdown").kendoDropDownList(
{
dataTextField: "Name",
dataValueField: "NodeID",
dataSource:
{
transport:
{
read: "JSONClimateSpaceNodes.aspx",
dataType: "json"
}
}
}
);
......
var ClimateDropDown = $("#ClimateDropDown").data("kendoDropDownList");
$.get("JSONIndoorClimate.aspx", "s=" + ClimateDropDown.value(), IndoorClimateResponse);
I am sure I am overlooking something simple and will appreciate a quick pointer to get me on the right track.
Thanks/Anker