Enable/Disable page controller base on scheduler data

Hi,

I have scheduler in my MVC 3 application. This page also contain few other controllers like buttons / dropdown, etc. What I need to have is, disble few page controllers (buttons) base on the scheduler events.
e.g: I want to disable button1 if there is no events.
I understand that this has to down after the application calls the Data method, and using a javascript function like “onXLE”. But my issue is how I van access the event data (records) within those methods.

Glad if you can help me on this…

Hello,
try following methods
var events = scheduler.getEvents(); - returns all events of the calendar
scheduler.getEvents(from, to); - returns all events within specified date range, e.g.var now = new Date(); var upcomming = scheduler.getEvents(now , scheduler.date.add(now, 1, "hour")); //returns events happening in a next hour