ScheduleViewBase NullRef Exception

4 posts, 0 answers
  1. Simon
    Simon avatar
    47 posts
    Member since:
    May 2008

    Posted 11 Nov 2012 Link to this post

    Has anyone encountered the exception below? Can you tell me what could cause such a problem in the ScheduleViewBase?

    I know that the cause is likely somewhere in our code, and I'm hoping someone can point me in the right direction. We encounter this exception when attempting to resize a recurring exception Appointment by grabbing the "top" border and sliding it up--making the start time earlier. As soon as the mouse is moved and a new start time indicated in the drag, the exception is thrown. Resizing regular, non-recurring appointments, and occurrence masters ("series") are fine. It's only the recurrence exception that has trouble.

    Message: Unhandled Error in Silverlight Application 
    Code: 4004    
    Category: ManagedRuntimeError       
    Message: System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.Windows.Controls.ScheduleViewBase.<>c__DisplayClassbc.<GetDecorationBlocksForSlot>b__b8(IGroupItemInfo info)
       at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
       at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
       at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
       at Telerik.Windows.Controls.CollectionExtensions.ForEach[T](IEnumerable`1 source, Action`1 action)
       at Telerik.Windows.Controls.HighlightPanel.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)


    Any suggestions for troubleshooting appreciated--

    Regards,
    Simon
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 15 Nov 2012 Link to this post

    Hello Simon,

    We tried to reproduce the issue concerning resizing the recurring exception appointment but with no success.

    Could you send us some code snippets of your project or open an support ticket and send us a runnable project that recreates the issue?

    All the best,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Zohreh
    Zohreh avatar
    1 posts
    Member since:
    Dec 2012

    Posted 06 Dec 2012 Link to this post

    Hi
    I'm getting the same null ref exception when trying to resize a very simple appointment with no recurrent rule.
    Is it solved?
    Is there any hint why I'm getting this issue?

    Cheers
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 11 Dec 2012 Link to this post

    Hi Zohreh,

    We are still not able to reproduce the NullReferenceException when resizing appointments in the control.

    Could you share with us some code snippet of your project or a runnable project that recreates the issue so we can observe it on our side?

    Regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top