Shared SideDrawer on every page

3 posts, 0 answers
  1. James
    James avatar
    11 posts
    Member since:
    Jan 2016

    Posted 12 Dec 2016 Link to this post

    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. Lance | Manager Technical Support
    Lance | Manager Technical Support avatar
    1189 posts

    Posted 12 Dec 2016 Link to this post

    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.

    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
  3. James
    James avatar
    11 posts
    Member since:
    Jan 2016

    Posted 12 Dec 2016 in reply to Lance | Manager Technical Support Link to this post

    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.

Back to Top