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

[Solved] Customize RadScheduler

1 Answer 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jeanpierre
Top achievements
Rank 1
jeanpierre asked on 21 May 2009, 02:31 PM
Hello,

I have 2 questions about the radScheduler :

- First, I would like to disable the link to the dayView in the number of the day (in the month view). How can I do that ?
I tried <DayView UserSelectable="False" /> and <telerik:RadScheduler DayView-UserSelectable="false"... but there are no effects.

- Then, I use InlineInsertTemplate to customize the template to add an appointment.
I add some RadComboBox and I would like to change some properties of the second RadComboBox when I select a value in the first RadComboBox.
I tried this code but my RadComboBox is null.

protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
  String code = e.Value;
  RadComboBox RadComboBox2 = (RadComboBox)RadScheduler1.FindControl("RadComboBox2"); // return null
}

Can you help me ?
thanks

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 25 May 2009, 03:08 PM
Hello jeanpierre,

I have created a sample project for you.

I am using jQuery to achieve the desired effect of your first requirement. I am finding all elements that have the rsDateHeader css class and disable their click and doubleclick events.

In SelectedIndexChanged event of the first combo I am finding the second combo by using the following code:

RadComboBox combo2 = ((RadComboBox)o).NamingContainer.FindControl("RadComboBox2"as RadComboBox; 


I hope that this helps.

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
jeanpierre
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or