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

Setting Default Values for AdvancedInsertTemplate

2 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Glenn Boothe
Top achievements
Rank 1
Glenn Boothe asked on 29 Jan 2009, 09:53 PM
Hello,

I am using RadScheduler in my application and I would like to set the default layout of the AdvancedInsertTemplate so that 'Recurring appointment' is selected with a recurrence setting of 'Weekly'.  Is this possible to do without having to modify the .ascx file in some way?  I have been successful in programmatically selecting the 'Recurring appointment' checkbox in the FormCreated event using the following code:

Dim chk As CheckBox = CType(e.Container.FindControl("RecurrentAppointment"), CheckBox)  
chk.Checked = True 

but this only causes the checkbox to be checked, the panel below that displays the recurrence controls won't show.  Even if I try:

Dim pnl As Panel = CType(e.Container.FindControl("RecurrencePatternPanel"), Panel)  
pnl.Visible = True 

Does anyone know what I might be able to do to accomplish this?

Thanks

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Feb 2009, 10:38 AM
Hello Glenn,

It would be hard to achieve this without modifying the SchedulerDefaultForm user control. Is there a particular reason why you want to avoid this approach and use FormCreated instead?


Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Glenn Boothe
Top achievements
Rank 1
answered on 03 Feb 2009, 02:16 PM
Peter,

There's not any major reason to avoid having to modify the .ascx, I sort of just like it the way it is and wouldn't really need to change it in any way outside of modifying the form's default state.  Also it's only on one particular page in the application where I need the form to behave this way.  All other forms that contain the scheduler would use insert form in its normal state.  No worries though, I'll just suck it up and modify the .ascx.

Thanks!
Tags
Scheduler
Asked by
Glenn Boothe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Glenn Boothe
Top achievements
Rank 1
Share this question
or