ISchedulerDialogHost

7 posts, 0 answers
  1. ryan
    ryan avatar
    9 posts
    Member since:
    Mar 2008

    Posted 10 Jun 2011 Link to this post

    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
  2. ryan
    ryan avatar
    9 posts
    Member since:
    Mar 2008

    Posted 13 Jun 2011 Link to this post

    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
  3. Yana
    Admin
    Yana avatar
    4736 posts

    Posted 14 Jun 2011 Link to this post

    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
    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
  4. ryan
    ryan avatar
    9 posts
    Member since:
    Mar 2008

    Posted 14 Jun 2011 Link to this post

    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
  5. Yana
    Admin
    Yana avatar
    4736 posts

    Posted 17 Jun 2011 Link to this post

    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
    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
  6. Charlie
    Charlie avatar
    1 posts
    Member since:
    Apr 2011

    Posted 05 Jul 2011 Link to this post

    Failed to create a 'System.Windows.Input.ICommand' from the text 'telerik:RadScheduleViewCommands.EditRecurrenceRule'.

    Is probably due to
    Command="{Binding telerik:RadScheduleViewCommands.EditRecurrenceRule}" 

    When it should be

    Command
    ="{Binding telerik:RadScheduleViewCommands.EditRecurrenceRule}"
  7. Yana
    Admin
    Yana avatar
    4736 posts

    Posted 07 Jul 2011 Link to this post

    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

    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!

Back to Top