Problem with RadContextMenu appearing behind a transparent ApplicationBAr

9 posts, 0 answers
  1. Glenn
    Glenn avatar
    6 posts
    Member since:
    Jun 2011

    Posted 23 Jun 2012 Link to this post

    Hi Telerik,

    I've been writing a Windows Phone 7.5 app using the latest trial build of the RadControls for WP7. I will be purchasing the controls soon, so as to submit to Microsoft for certification.

    However, I am having a problem with the RadContextMenu. I have a RadContextMenu attached to a RadDataBoundListBox on my page. All of the pages in my app have an application bar with opacity set to 0.95. The problem occurs when the RadContextMenu is show towards the bottom of the screen, in that the RadContextMenu and menu items are shown behind the application bar, and apart from not looking good, also means that I cannot click on the context menu items that are situated behind.

    I do not really want to change the opacity to 1, please can you investigate, let me know if you can reproduce, if so, I hope you can get a fix out soon so that I can purchase the controls prior to my app submission to Microsoft.

    Many Thanks,

    Glenn
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 25 Jun 2012 Link to this post

    Hi Glenn,

    Thank you for writing.
    I am afraid that there is nothing we can do on our side. Since RadContextMenu is built on top of silverlight, it will always be displayed below the app bar no matter what we do since the app bar is a native component and we have very little control over it.

    For the moment please consider an alternative design for your application. We will consider improving RadContextMenu so that it is aware of the app bar opacity.
    Thank you for understanding.

    Regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Anton
    Anton avatar
    3 posts
    Member since:
    May 2014

    Posted 07 Jul 2014 Link to this post

    Greetings!
    As I still experience this bug as of 2014.1.*, I'd like to suggest a possible solution of this problem to dev team which is pretty simple. How can I do this to not disclose part of ContextMenu class here?
  5. Anton
    Anton avatar
    3 posts
    Member since:
    May 2014

    Posted 07 Jul 2014 in reply to Anton Link to this post

    Just to clarify: I'm experiencing this bug with WP8 version of library, but I thought that it's pointless to start a new thread
  6. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 10 Jul 2014 Link to this post

    Hello Glenn,

    We highly appreciate customer feedback. As a customer you can open support ticket from your account where we can discuss possible solutions to this scenario.

    Regards,
    Tsvyatko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Martin
    Martin avatar
    18 posts
    Member since:
    May 2014

    Posted 21 Jul 2014 Link to this post

    Hi, we're experiencing this problem with semitransparent AppBar and RadContextMenu as well even with latest RadControls for WP8.
    It shouldn't be hard to fix this by detecting the current state of AppBar on current page and if it's (semi)transparent, then computing the available space accordingly.
  8. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 24 Jul 2014 Link to this post

    Hi Martin,

    Thank you for your suggestion. We will into this and work for improvement in RadContextMenu behavior in our next official release for WP8.

    Regards,
    Tsvyatko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Martin
    Martin avatar
    18 posts
    Member since:
    May 2014

    Posted 04 Dec 2014 Link to this post

    Hi, any update about fixing this bug? As I noticed it was already reported in 2012 and the fix should be really simple, in pseudocode:

    // when computing context menu position
    UIElement tappedElement = ...;
    Page page = FindPage(page);
    double h = page.ActualHeight;
    ApplicationBar appbar = FindAppBar(page);
    if (IsAppBarTransparent(appbar)) {
    h--= 48; // make the page height smaller so the context menu does not appear at the bottom behind the AppBar
    }
    // compute the Context menu position - over or under the tapped element
  10. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 08 Dec 2014 Link to this post

    Hello,

    The current implementation of the RadContextMenu exposes a PortraitAlignment property which can be useful in such scenarios. For example, if you set it to Stretch, it will fill the available area and this problem should not be present.

    Please, let me know if this helps.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner