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

Quick question

1 Answer 54 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Anker Berg-Sonne
Top achievements
Rank 1
Anker Berg-Sonne asked on 10 Apr 2012, 04:59 PM
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

1 Answer, 1 is accepted

Sort by
0
Anker Berg-Sonne
Top achievements
Rank 1
answered on 10 Apr 2012, 05:03 PM
Found it. Case sensitivity got me. Sorry about the bandwidth usage.

Anker
Tags
DropDownList
Asked by
Anker Berg-Sonne
Top achievements
Rank 1
Answers by
Anker Berg-Sonne
Top achievements
Rank 1
Share this question
or