3 Answers, 1 is accepted
Thank you for writing.
I have attached a sample project where I have tried to reproduce your scenario. All I did is handle the outlook page view SelectedPageChanged event and set the SelectedPage property of the strip page view to a page. If this is not what you want, I would kindly ask you to send me a more detailed explanation of what you are trying to achieve.
I hope this will help you. Should you need further assistance, I would be glad to provide it.
Ivan Petrov
the Telerik team
Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.
my code
Public Partial Class Form1
Inherits RadForm
Public Sub New()
InitializeComponent()
End Sub
Private Sub radPageView1_SelectedPageChanged(sender As Object, e As EventArgs)
If Me.radPageView1.SelectedPage = Me.radPageViewPage1 Then
Me.radPageView2.SelectedPage = Me.radPageViewPage6
End If
If Me.radPageView1.SelectedPage = Me.radPageViewPage2 Then
Me.radPageView2.SelectedPage = Me.radPageViewPage7
End If
If Me.radPageView1.SelectedPage = Me.radPageViewPage3 Then
Me.radPageView2.SelectedPage = Me.radPageViewPage8
End If
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs)
End Sub
End Class
i tried with it in its own namespace but still the same issue. the error i get is:
Operator '=' is not defined for types 'Telerik.WinControls.UI.RadPageViewPage' and 'Telerik.WinControls.UI.RadPageViewPage'.
any help would be great.
Thank you for your reply.
I converted the example also and tested it. The reason for the exception is that when you start the project, the first page view is created, its pages are added and its SelectedPage property is set. This setting fires the event and it tries to set the SelectedPage of the second page view, but this page view has not been initialized yet and its pages have not been added to its pages collection. To work around this, please subscribe to the event after the form components have been initialized. This means after the call to the InitializeComponenets method in the form constructor.
I hope this will be useful for you. If you have further questions, I would be glad to help.
Ivan Petrov
the Telerik team
Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.