Quick question

2 posts, 0 answers
  1. Anker Berg-Sonne
    Anker Berg-Sonne avatar
    37 posts
    Member since:
    Sep 2009

    Posted 10 Apr 2012 Link to this post

    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
  2. Anker Berg-Sonne
    Anker Berg-Sonne avatar
    37 posts
    Member since:
    Sep 2009

    Posted 10 Apr 2012 Link to this post

    Found it. Case sensitivity got me. Sorry about the bandwidth usage.

    Anker
Back to Top