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

Shared SideDrawer on every page

2 Answers 126 Views
SideDrawer
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 12 Dec 2016, 07:47 PM
I have a menu that never changes and I need to add it to every page. How do we do this without having the content repeated on every page and without having to setup the toolbaritems every time etc.?

2 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 12 Dec 2016, 08:34 PM
Hello James,

Currently, that is unsupported. This is because the RadSideDrawer.MainContent only supports content of type View. In order to host and navigate it needs to support Page types (ContentPage, NavigationPage, etc).

Fortunately, this feature has been previously requested and we have approved development for a future release. You can keep track of its development via this feedback item. You can help raise the priority of the item by up-voting it (click the "Like" button).

Please let us know if you have any further questions or concerns.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
0
James
Top achievements
Rank 1
answered on 12 Dec 2016, 08:50 PM

OK, for now here's what I've done that might help others:

 

1. Create a BaseContentPage that inherits from ContentPage

2. Add the RadControl as the content and add any toolbar items etc. in code in an Init function

3. Add a MainContent property as a public get/set View.

4. Make all of your pages inherit from that BaseContentPage and set the MainContent instead of Content and after your initialization code in the constructor call the Init() function from the base page.

It works pretty well other than it's loading the navigation over and over again which doesn't seem to slow anything down.

Tags
SideDrawer
Asked by
James
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
James
Top achievements
Rank 1
Share this question
or