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

Inheriting from RadPageView

5 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
pirobox
Top achievements
Rank 1
pirobox asked on 09 Aug 2010, 11:19 AM
Hi,
I'm using 2010Q2 and I'm trying to inheriting from RadMultiPage.
So far I had no problem inheriting from the main class, but I have some small issue when I try to create subclasses of its children: the PageViews

I tried the same approach I used for RadTabStrip / RadTab and RadTreeView / RadTreeNode and so far they are working perfectly.
I created a subclass of RadPageView and started adding instances of that subclass to a RadMultiPage.
The problem happens on postbacks: the RadMultiPage recreates instances of RadPageView and not of my subclass.

Am I making some error? Is there another way to subclass RadPageView? Is it not supported?

Best Regards, Andrea Pirola

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 12 Aug 2010, 03:01 PM
Hi,

I can confirm that RadMultiPage will not use your custom type when recreating the page views from ViewState. There's no suitable CreatePageView method to override in this case.

This is an inconsistency that we'll fix right away. The fix will be available in the next internal build as well as in the next service pack release.

As a token of gratitude for your involvement your Telerik points have been updated.

Greetings,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
robin russell
Top achievements
Rank 2
answered on 04 May 2011, 06:16 PM
has this inheritance issue been fixed?? If so in which version
0
Veronica
Telerik team
answered on 05 May 2011, 12:23 PM
Hi robin russell,

Yes, this is already fixed. We've implemented a CreatePageView method in the RadMultiPage.

Greetings,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Dmitry
Top achievements
Rank 1
answered on 08 Apr 2013, 03:22 PM
Hello,

I am using Telerik controls for ASP.NET AJAX v.2012.3.1308.40.  I am struggling to find the CreatePageView method that was previously mentioned in this thread.  I have created a subclass for RadPageView with an intention of creating some additional properties, but the control is recreated as the base class (RadPageView) on the postback.

Could you please assist me with locating the new method?

Thank you,
Dmitry.
0
Nencho
Telerik team
answered on 10 Apr 2013, 03:09 PM
Hello Dmitry,

The mentioned method possess a protected access modified and once you have inherited the RadMultiPage class, you should be able to access it.

Kind regards,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
pirobox
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
robin russell
Top achievements
Rank 2
Veronica
Telerik team
Dmitry
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or