RadBook with New RadDocument as Source throws UnhandledException

3 posts, 0 answers
  1. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 05 Jan 2012 Link to this post

    Hi telerik
    I'm using RadControls for Silverlight  2011.3.1116.1040.
    When use RadBook control with a New RadDocument as Source, it throws UnHandledException and can't close ErrorMessage so I can only refresh browser.
    {System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.Windows.Controls.RadBook.get_PageDimensions()
       at Telerik.Windows.Controls.RadBook.UpdatePageTurn(Point hoverPoint)
       at Telerik.Windows.Controls.RadBook.PageTurner_Turning(Object sender, PageTurnEventArgs e)
       at Telerik.Windows.Controls.Book.PageTurner.Timer_Tick(Object sender, EventArgs e)
       at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}

    I send this demo project to reproduce this exception.
    Private Sub frmBookDetail_Loaded(sender As Object, e As System.Windows.RoutedEventArgs) Handles Me.Loaded
            Dim doc As New RadDocument
            Me.book.RightPageIndex = 0
            Dim bindingSource As New RadDocumentBindingSource()
            bindingSource.Document = doc
            Me.book.ItemsSource = bindingSource
        End Sub

    <telerik:RadBook x:Name="book"
                             BorderThickness="2"
                             BorderBrush="Black"
                             Background="Yellow">
            </telerik:RadBook>

    You can reproduce by click in Radbook's top-right conner and drag it to middle like you're flipping page. It'll show continuously ErrorMessage.
    Can you resolve this bug in next internal build?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 09 Jan 2012 Link to this post

    Hello Hoàng,

    We are aware of this issue and we will do our best to fix it for the next internal build. You can track its progress in our PITS.

    All the best,
    Tina Stancheva
    the Telerik team

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

  3. DevCraft banner
  4. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 12 Jan 2012 Link to this post

    Hello Hoàng,

    We want to inform you, that this issue is fixed and the fix will be available in our next internal build and in the upcoming official releases.
    It will be great if you can give it a try (once it is available) and let us know if it fits your scenario(s)/expectation(s).

    Any additional feedback of the subject is highly appreciated.

    Kind regards,
    Vladislav
    the Telerik team

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

Back to Top