title: Kendo Scheduler Scrape Recurrence Rule Before Save
body: <p>I have a custom edit template for kendo scheduler.
  Below all the controls to set dates and the recurrence rule I have a button.
  Pressing the button loads a list of people available for that appointment.
  To get that list, I am checking conflicts in future visits and I'm checking against a people availability table to make sure they are available on those dates.</p>
  
  <p>All the code works fine except I cannot get the recurrence rule before the Save button is pressed and the data is transported to the server.</p>
  
  <p>The recurrenceRule property is blank even though all the selections are made before pressing my button.  </p>
  
  <p>It seems kendo scheduler formats that recurrence rule when you press the save button and then populates the model and transports it to the server.</p>
  
  <p>I could write my own Recurrence Rule by reading the widgets in the kendo recurrence editor control but they didn't put an Id's on the widgets which makes them hard to get.  I think you can use css selectors but I haven't done anything like that and would rather not write my own recurrence editor.  </p>
  
  <p>Does anyone know how to get the recurrence rule while in the edit template before pressing Save?</p>
  
  <p>FLOW:</p>
  
  <p>1) set start and end date, and recurrence pattern in kendo recurrence editor</p>
  
  <p>2) press button on edit template form to load available employees
    --- I need the recurrence rule here.
    On the server side I expand the appointment to all it's occurrences
    and then I check each potential visit against the employee schedule </p>
  
  <p>3) select one of the employees and save the record.
    --- I can't do the check here because the employee has to be selected before saving the record and I only want to provide a list of available employees -- before save.</p>
  
  <p>I tried many things including this:</p>
  
  <pre><code>var recurEditor = $("#RecurrenceRule").data("kendoRecurrenceEditor");
  var recurrenceRule = recurEditor.options.recurrenceRule;
  alert("recurrenceRule: " + recurrenceRule); 
  </code></pre>
  
  <p>But no luck...</p>