ScheduleView with RIA Services

4 posts, 0 answers
  1. Leo
    Leo avatar
    49 posts
    Member since:
    Oct 2010

    Posted 10 May 2012 Link to this post

    Any updates with Silverlight 5? The documentation/examples shown is very out of date. Some of them need some code tweaking just for the example to work. How is telerik doing with this? ScheduleView control is a nice control and we need an updated version of the documentation for this.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 May 2012 Link to this post

    Hi Leo,

    We are constantly working on improving our documentation, but you are right that the example projects in our Code Library/ KB sections are not updated for Silverlight 5.  For each project you can see the version of RadControls with which it was initially built. We will upgrade the projects, but note that this is a slow process which requires more time. 
    Please tell us more details about the issues you are experiencing with ScheduleView and will help you with the upgrade.

    Regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Leo
    Leo avatar
    49 posts
    Member since:
    Oct 2010

    Posted 11 May 2012 Link to this post

    I manage to get the demo code to work, but my question is do I have to have some sort of a dummy data on my Tables for the ScheduleView's itemssource cause I am getting saying that value cannot be null when trying to add a new appointment. Update 1: So here's the real problem. What if I wanted to make a wrapper class around IAppointment, I tried doing this and it is giving me the same error. So I am concluding I am doing something wrong when I am trying to bind the class to the Appointments whenever I try to launch the AppointmentsDialogViewModel. What is the proper way to wrap a class to an IAppointment that it will let me launch the Dialog, am I missing the Recurrence? Here is the stack trace    at System.Linq.Enumerable.OfType[TResult](IEnumerable source)
       at Telerik.Windows.Controls.ScheduleView.AppointmentExtensions.GetResources(IOccurrence occurrence)
       at Telerik.Windows.Controls.ScheduleView.ResourceTypeViewModel.IsChecked(IResource resource)
       at Telerik.Windows.Controls.ScheduleView.ResourceTypeViewModel..ctor(IResourceType resourceType, IAppointment appointment)
       at Telerik.Windows.Controls.AppointmentDialogViewModel.<.ctor>b__0(IResourceType rt)
       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
       at System.Collections.ObjectModel.ObservableCollection`1.CopyFrom(IEnumerable`1 collection)
       at System.Collections.ObjectModel.ObservableCollection`1..ctor(IEnumerable`1 collection)
       at Telerik.Windows.Controls.AppointmentDialogViewModel..ctor(Occurrence occurrence, AppointmentViewMode viewMode, IScheduleViewDialogHost dialogHost, IEnumerable`1 resourceTypes, IEnumerable`1 timeMarkers, IEnumerable`1 categories)
       at Telerik.Windows.Controls.ScheduleViewBase.CreateAppointmentDialogViewModel(Occurrence occurrence, AppointmentViewMode viewMode)
       at Telerik.Windows.Controls.ScheduleViewBase.OpenAppointmentDialog(Occurrence occurrence, AppointmentViewMode viewMode)
       at Telerik.Windows.Controls.ScheduleViewBase.CreateAppointmentWithDialog(Object parameter)
       at Telerik.Windows.Controls.ScheduleViewBase.OnCreateAppointmentExecuted(Object sender, ExecutedRoutedEventArgs e)
       at Telerik.Windows.Controls.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       at Telerik.Windows.Controls.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
       at Telerik.Windows.Controls.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at Telerik.Windows.Controls.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at Telerik.Windows.Controls.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       at Telerik.Windows.Controls.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
       at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
       at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
       at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
       at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
       at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
       at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
       at Telerik.Windows.Controls.RoutedCommand.ExecuteImpl(Object parameter, UIElement target)
       at Telerik.Windows.Controls.RoutedCommand.Execute(Object parameter, UIElement target)
       at Telerik.Windows.Controls.CommandManager.TranslateInput(UIElement targetElement, RoutedEventArgs args)
       at Telerik.Windows.Controls.CommandManager.OnElementEvent(Object sender, RoutedEventArgs e)
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 14 May 2012 Link to this post

    Hello Leo,

    We will need more details about your exact scenario in order to provide a suitable solution. Please open a support ticket and send us a simple runnable project showing the issue you're experiencing.

    Thanks in advance.

    All the best,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top