This is a migrated thread and some comments may be shown as answers.

RadBook with New RadDocument as Source throws UnhandledException

2 Answers 58 Views
Book
This is a migrated thread and some comments may be shown as answers.
hvduc
Top achievements
Rank 1
hvduc asked on 05 Jan 2012, 06:05 AM
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 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 09 Jan 2012, 03:38 PM
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 >>

0
Vladislav
Telerik team
answered on 12 Jan 2012, 03:40 PM
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 >>

Tags
Book
Asked by
hvduc
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Vladislav
Telerik team
Share this question
or