title: .NET Kendo Scheduler: dynamically change datasource resources
body: <p>Now i'm using a datasource like this: (with the parameters to filter hard coded)</p>
  
  <pre><code>   $(function () {
          $("#scheduler").kendoScheduler({
              date: new Date(Date.now()),
              startTime: new Date(2013, 5, 13, 9, 0, 0, 0),
              height: 800,
              timezone: "Etc/UTC",
              group: {
                  resources: ["Rooms"]
              },
              resources: [
                  {
                      name:"Rooms",
                      title: "Room",
                      field: "RoomID",
                      dataSource: {
                          transport:
                              {
                                  read: { url: "@Html.Raw(Url.Action("Filter_Rooms", "Room", new{
                                      pPar1= true,
                                      pPar2 = false,
                                      pPar3 = true,
                                           }))", dataType: "json" }
                              }
                      }
                  }
  </code></pre>
  
  <p>As you can see these paramaters are still hard coded and I want to change them whenever the user wants using checkboxes:</p>
  
  <pre><code>&lt;div class="checkbox"&gt;
      &lt;label&gt;
      &lt;input id="chkPar1" type="checkbox"&gt; Parameter 1
      &lt;/label&gt;
  &lt;/div&gt;
  &lt;div class="checkbox"&gt;
      &lt;label&gt;
      &lt;input id="chkPar2" type="checkbox"&gt; Parameter 2
      &lt;/label&gt;
  &lt;/div&gt;   
      &lt;a href="#" id="btnFilter" class="btn btn-outline btn-primary btn-lg btn-block"&gt;Filter&lt;/a&gt;
  </code></pre>
  
  <p>I thought while using javascript to check if button is clicked and then store checkbox paramaters in global variables and use these in the transport read of the scheduler but it seems you can't use document.getelementbyId here.</p>
  
  <p>Here they suggested <a href="https://stackoverflow.com/questions/12254334/kendo-ui-dynamically-change-datasource-string-xml">Kendo UI Dynamically Change Datasource String (XML)</a> but that doesn't seem to work for me neither..</p>
  
  <pre><code>var dynamicUrl = "Html.Raw(Url.Action('Filter_Rooms', 'Room', new{pFilter = true, pCapacity = 25,pBeamer = true,pTelevision = false}))', dataType: 'json'"
  var scheduler = $("#scheduler").data("kendoScheduler");
  scheduler.dataSource.transport.options.read.url = dynamicUrl;
  </code></pre>
  
  <p>So How can I dynamically change these paramaters or update the entire transport read url? </p>
  
  <p>Regards</p>