Drawer sliding resets dynamic background image

4 posts, 0 answers
  1. Artie
    Artie avatar
    29 posts
    Member since:
    May 2015

    Posted 21 Nov 2016 Link to this post

    We are trying to implement a feature where view backgrounds can be dynamic, once a user has logged in the background URLs for the various views will be loaded from the server.  This gives us the ability to provide "fresh" and/or "seasonal" background images to the views.  One problem that we keep running into is that when the drawer is opened and then closed, any explicitly set "background-image" property that's not defined via CSS gets wiped out.  Is there any way around the behavior shown by opening and then closing the menu within this Dojo?

    http://dojo.telerik.com/@artie.cs/uraNOJ

    We are trying to avoid having to rework the view contents to add child elements to all of the views we already have in place, we just want to understand why the drawer behaves this way. 

     

     

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2601 posts

    Posted 23 Nov 2016 Link to this post

    Hi Artie,

    You could set additional class to the view in order to implement the desired scenario. Take a look at the updated dojo: 

    http://dojo.telerik.com/@Iliana/IsadeY

    Regards,
    Iliana Nikolova
    Telerik by Progress
    Kendo UI is ready for Visual Studio 2017 RC! Learn more.
  3. Artie
    Artie avatar
    29 posts
    Member since:
    May 2015

    Posted 23 Nov 2016 Link to this post

    Hi Iliana,

    Thanks for the reply!  That's actually what our original implementation looked like, which worked just fine.  However, the new requirement is that we won't actually know these image URLs until after the entire application is loaded, hence our need to set them explicitly or perhaps use some other mechanism.  There are some crazy workarounds we could put into place but first I'd like to understand the behavior going on with the drawer to see if there are any easier solutions.

    Artie

  4. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2601 posts

    Posted 25 Nov 2016 Link to this post

    Hi Artie,

    Honestly, I don't believe this behavior is correct therefore I logged the case for further investigation and fixing. You could try its progress here: 

    https://github.com/telerik/kendo-ui-core/issues/2483


    Regards,
    Iliana Nikolova
    Telerik by Progress
    Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Back to Top