2 SideDrawers on left and right side

7 posts, 1 answers
  1. Markus
    Markus avatar
    9 posts
    Member since:
    Apr 2015

    Posted 19 May 2015 Link to this post

    Hello,

    is it possible to have 2 different RadSideDrawers on both sides of the screen?

    If yes, could you give me a short example how to achieve this?

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 20 May 2015 Link to this post

    Hello Markus,

    Thanks for writing.
    Yes, this is possible. You have to create two side drawers, set DrawerLocation.LEFT to one and DrawerLocation.RIGHT on the other and they should just work.  The setter method is called setDrawerLocation() as you might imagine :).

    Regards,
    Victor
    Telerik
    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. DevCraft banner
  4. Markus
    Markus avatar
    9 posts
    Member since:
    Apr 2015

    Posted 20 May 2015 in reply to Victor Link to this post

    Thanks for your reply

    I already tried that but i can't get it to work.

    I have set up a left drawer with a main and a sidecontent and added it to a viewgroup in my layout.

    I have to specify a drawer and a main content with SetDrawerContent() and SetMainContent() to get the drawer to show up.

    What do i have to specify as main content in the right drawer and what should i add it to? When i don't set a main content and add it to the same viewgroup as my left drawer it won't show up. Sorry for the newbish question but i can't seem to figure it out :-(

     

    Regards,

    Markus

     

  5. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 May 2015 Link to this post

    Hello Markus,

    Thanks for writing.
    Please have a look at the attached app.
    You don't need to actually set any main content in the drawers. You can set it as the first child of your root layout.

    Regards,
    Victor
    Telerik
    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
  6. Markus
    Markus avatar
    9 posts
    Member since:
    Apr 2015

    Posted 22 May 2015 in reply to Victor Link to this post

    Hello Victor

    Thank you very much. This has been very helpful.

    Regards,

    Markus

  7. Ana
    Ana avatar
    4 posts
    Member since:
    Mar 2013

    Posted 08 Oct 2015 Link to this post

    Hi Victor,

    In the sample that you provided there is no shadow over main content, when left or right side drawer is opened.

    Can you please update sample project in order that we get shadow? Thank you.

    Regards,
    Ana

     

     

  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 09 Oct 2015 Link to this post

    Hi Ana,

    I answered your question about the same thing in the other thread you posted. In short we will have to update RadSideDrawer slightly so that this works seamlessly.

    Regards,
    Victor
    Telerik
    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
Back to Top
DevCraft banner