Modifying default actions

Hi There,

I’m evaluating scheduler control and I need help with the following:

  1. No LightBox
    User should be able to select time for events for any date, but I don’t want lightbox to load.

  2. Restrict navigation
    In weekview, I have to restrict users to a date range, i.e user should be able to add event only between a Start date and End date. Other dates could be disabled or navigation outside the range should be disabled. It would also be helpful if it there is a vertical line indicator for start date and end date.

Is this possible?

Regards,
Karthik

Hello,

  1. do you need user to be able to create new events without lightbox showing? it’s possible, but will require some customization
  2. you can configurate scheduler to show only available hours

scheduler.Config.first_hour = 8; scheduler.Config.last_hour = 17; scheduler.Config.limit_time_select = true;

Hi Aliaksandr,

  1. Yeah, I don’t want to show lightbox when a user creates an event. Can you share the code necessary to achieve this?
  2. Regarding 2, I want to restrict users to add events only between a start date and end date (not hours), i.e in week view I should be able to restrict user to add events between say, ‘16th april 2012’ to ‘21st april 2012’. If users try to add events for other dates outside this range, scheduler shouldn’t allow them to add that event. Also I need a visual line indicator for the start date, end date.

Regards,
Karthik

Hi,
here is a necessary code
client:

[code] @Html.Raw(Model.Render()) [/code] server: [code]public virtual ActionResult Index() { var sched = new DHXScheduler(this); //enable extension which allows to limit active dates, current version does not have server side api to configurate limits sched.Extensions.Add(SchedulerExtensions.Extension.Limit);

//call client side code before scheduler initialization
sched.BeforeInit = new List() { “config();” };

        sched.LoadData = true;          
        sched.EnableDataprocessor = true;
        return View(sched);

}[/code]

Hi Aliaksandr,

Thanks for the update.

I also need your help with the following:

  1. Initial load doesn’t show weekview in scheduler control unless ‘Today’ button is clicked. Initial load is empty as shown in the following image:

  1. Need vertical indicators for start date and end date. Refer following image

For the above image start date is 8, May and end date is 10 May

  1. Pass extra parameter to Save action in controller.

public ContentResult Save(int? id, FormCollection actionValues)

Please, update with the code changes required to achieve this.

Regards,
Karthik