Scheduler with Recurrence help

I was going over the some examples for Recurrence and got this info

  1. rec_type (day…,month…, week…, etc…,)
  2. event_length (start_time/1000)
  3. event_pid (unique id to all recurrence list types)

Question

  1. I am using JSON and in the scheduler.parse i was trying to construct the JSON string for different types but i always get weird output. Can you pls post some examples of the format for different types of rect_type?
{ start_date: "2010-10-25 11:00", end_date: "2010-11-24 12:00", text:"ABC event", rec_type:"day_8___#5",event_pid:"1"}
  1. How does the Scheduler know how to differentiate b/w Recurrence Vs. Normal popup which appears when you try to edit an event?

How does the Scheduler know how to differentiate b/w Recurrence Vs. Normal popup which appears when you try to edit an event?

While rendering recurring events receives specific id markers.

grid.showLighbtox(“123”); //edit event with id = 123
grid.showLighbtox(“123#1234567890”); //edit recurring event with id=123, instance occurs on some date, 1234567890 - timestamp of occurence start

JSON examples - recurring event

{"id":"242","start_date":"2010-10-04 00:00:00","end_date":"2010-10-07 00:00:00", "text":"try","rec_type":"week_1___1,2,3,4,5#3","event_pid":"0","event_length":"300"}

delete instance of recurring event

{"id":"244","start_date":"2010-10-05 00:00:00","end_date":"2010-10-05 00:05:00", "text":"try","rec_type":"none","event_pid":"242","event_length":"1286312400"}