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

Drawer sliding resets dynamic background image

3 Answers 101 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
Artie
Top achievements
Rank 1
Artie asked on 21 Nov 2016, 09:50 PM

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. 

 

 

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 23 Nov 2016, 01:14 PM
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.
0
Artie
Top achievements
Rank 1
answered on 23 Nov 2016, 02:11 PM

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

0
Iliana Dyankova
Telerik team
answered on 25 Nov 2016, 08:56 AM
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.
Tags
Drawer (Mobile)
Asked by
Artie
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Artie
Top achievements
Rank 1
Share this question
or