This is a migrated thread and some comments may be shown as answers.

Accessing CheckboxList in Scheduler

1 Answer 26 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Himadri Banerjee
Top achievements
Rank 1
Himadri Banerjee asked on 18 Nov 2008, 03:02 PM
I have installed the latest service pack and my code where I was accessing my resources (list of users displayed as checkbox) inside the  RadScheduler1_FormCreated is not working anymore. I am not sure if I coded it in the correct way in the first place but I had to disable those check boxes in the EditMode.
I did the following which was working with the July service pack. Currently it can't find the checklist box with all the users. "User" is the name of my resource which is coming out of the database with the Scheduler provider model.

 

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)

{
   if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.Edit)
   {      

        CheckBoxList chkList = e.Container.FindControl("User") as CheckBoxList;
        if (chkList != null ) 
            chkList.Enabled = false;
        RadDatePicker startDate = e.Container.FindControl("StartDate") as RadDatePicker;
        if (startDate != null)
            startDate.Enabled = false;
         RadDatePicker endDate = e.Container.FindControl("EndDate") as RadDatePicker;
         if (endDate != null)
             endDate.Enabled = false;
     }
}

 

 

 

 

 

Please advise on how to really get hold of the items and disable them inside the form, if this is not the correct way. Are they not rendered as Checkbox list anymore?

By the way none of your Forum links are working from the demo pages anymore. You have to come to the Forum page from the main Home Page.


Thanks
Himadri

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Nov 2008, 04:21 PM
Hi Himadri,

The rendering of RadScheduler has changed with Q3 2008. Please, refer to this updated kb article:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-access-controls-in-the-advanced-form.aspx

Notice, that the resource dropdownlist controls' IDs have a "Res" prefix now.

Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Himadri Banerjee
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or