title: how can I set kendo dropdownlist text programatically when using a template?
body: <p>I have this dropdownlist</p>
  
  <pre><code>        $("#rooms").kendoDropDownList({
              template: kendo.template($("#roomsListTemplate").html()),
              valueTemplate: kendo.template($("#roomsSelectTemplate").html()),
              filter: "contains",
              dataTextField: "room",
              dataValueField: "id",
              dataSource: roomsList,
              index: 0,
              select: onSelectRoom
          });
          var rooms = $("#rooms").data("kendoDropDownList");
  </code></pre>
  
  <p>that uses this template</p>
  
  <pre><code>            &lt;script id="roomsSelectTemplate" type="text/x-kendo-template"&gt;
                  &lt;span class="roomName"&gt;
                  #if (room != 'null' &amp;&amp; room != '')  { #
                       #=room# 
                  # } #
                  #if (availability == 'roomOk')  { #
                      - Available
                  # } #
                  &lt;/span&gt;
              &lt;/script&gt;
  </code></pre>
  
  <p>Now I want to be able to set the dropdownlist text programatically. I'm trying with : </p>
  
  <pre><code>        rooms.text("Select a room...");
  </code></pre>
  
  <p>This works ok on another dropdownlist that has a template with only one value, but this one has two values (<strong>room</strong> and <strong>availability</strong>).</p>
  
  <p>Firebug throws "ReferenceError: availability is not defined" so the problem is definitely that the template is expecting a value for <strong>availabity</strong> </p>
  
  <p>I have tried </p>
  
  <pre><code>    rooms.text("Select a room...","Something here");
  </code></pre>
  
  <p>But same result and error message from Firebug...</p>
  
  <p>You can see both behaviors here <a href="http://jsfiddle.net/pmeconi/jr2kgvsd/1/" rel="nofollow">http://jsfiddle.net/pmeconi/jr2kgvsd/1/</a></p>
  
  <p>Any ideas on how to make it work when there is more than one value on the template?</p>
  
  <p>Thanks in advance!</p>