I'm following the suggestion in this thread and it is working great except i can't get the default recurrence dialog to open from my custom edit dialog. adding a command to a button (Command="telerik:RadScheduleViewCommands.EditRecurrenceRule") but i get an error that the command cant be created. I also tried this on the button click (ScheduleView.SchedulerDialogHostFactory.CreateNew(ScheduleView, DialogType.RecurrenceDialog).Show(true);). it opens a window but there is nothing in it. any ideas?
http://www.telerik.com/community/forums/silverlight/scheduleview/changing-the-style-of-dialog-windows.aspx
Thanks,
Ryan
http://www.telerik.com/community/forums/silverlight/scheduleview/changing-the-style-of-dialog-windows.aspx
Thanks,
Ryan
6 Answers, 1 is accepted
0
ryan
Top achievements
Rank 1
answered on 13 Jun 2011, 03:49 PM
can anyone help with this or point me to some documentation other then the one forum thread? If I could just get the recurrence dialog to open from a custom edit dialog i would be happy.
Thanks,
Ryan
Thanks,
Ryan
0
Hello Ryan,
I've attached the modified example which opens the default RecurrenceDialog, please download it and give it a try.
Let us know whether it helps.
Best wishes,
Yana
the Telerik team
I've attached the modified example which opens the default RecurrenceDialog, please download it and give it a try.
Let us know whether it helps.
Best wishes,
Yana
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
ryan
Top achievements
Rank 1
answered on 14 Jun 2011, 05:00 PM
I see how that works but I need to change more then the editAppointDialogStyle. I need to actually build my own appointment edit screen and add a open recurrence button. I tried adding this
<Button x:Name="EditRecurrenceDefault" Command="telerik:RadScheduleViewCommands.EditRecurrenceRule" IsEnabled="True" Content="Edit Recurrence G" />
to CustomApppointmentDialogHost.xmal in your example and I get the same error that i get on mine.
Failed to create a 'System.Windows.Input.ICommand' from the text 'telerik:RadScheduleViewCommands.EditRecurrenceRule'.
can you provide an example that creates it's own edit recurrence button?
Thanks,
Ryan
<Button x:Name="EditRecurrenceDefault" Command="telerik:RadScheduleViewCommands.EditRecurrenceRule" IsEnabled="True" Content="Edit Recurrence G" />
to CustomApppointmentDialogHost.xmal in your example and I get the same error that i get on mine.
Failed to create a 'System.Windows.Input.ICommand' from the text 'telerik:RadScheduleViewCommands.EditRecurrenceRule'.
can you provide an example that creates it's own edit recurrence button?
Thanks,
Ryan
0
Hello Ryan,
You should place this button in the Template set in EditAppointmentDialogStyle, because the DataContext of the TargetType of this style is AppointmentDialogViewModel and the command is defined there. You can edit and remove the needed controls in the template.
In order to customize the EditRecurrenceDialog, you should set EditRecurrenceDialogStyle property of the ScheduleView. I've modified the project to demonstrate the approach, please download it again and examine it.
Hope this helps.
All the best,
Yana
the Telerik team
You should place this button in the Template set in EditAppointmentDialogStyle, because the DataContext of the TargetType of this style is AppointmentDialogViewModel and the command is defined there. You can edit and remove the needed controls in the template.
In order to customize the EditRecurrenceDialog, you should set EditRecurrenceDialogStyle property of the ScheduleView. I've modified the project to demonstrate the approach, please download it again and examine it.
Hope this helps.
All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Charlie
Top achievements
Rank 1
answered on 05 Jul 2011, 02:06 PM
Failed to create a 'System.Windows.Input.ICommand' from the text 'telerik:RadScheduleViewCommands.EditRecurrenceRule'.
Is probably due to
Is probably due to
Command="{Binding telerik:RadScheduleViewCommands.EditRecurrenceRule}"
When it should be
Command="{Binding telerik:RadScheduleViewCommands.EditRecurrenceRule}"
0
Hi Charlie,
We're not able to reproduce this error, please send us more details which will help us observe it.
Best wishes,
Yana
the Telerik team
We're not able to reproduce this error, please send us more details which will help us observe it.
Best wishes,
Yana
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!