Bug Report T295289
Visible to All Users

DevExpress styles are rendered after custom ones after upgrading from v14.2 to v15.1

created 9 years ago (modified 9 years ago)

Hello,

I use StyleSheetTheming in my application, setup as such:

in global.asax:

C#
protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) { DevExpress.Web.ASPxWebControl.GlobalTheme = "SoftOrange"; }

in Page:

C#
public override string StyleSheetTheme { get { return "SoftOrange"; } }

I have my own stylesheet files in App_Themes/SoftOrange folder.

Before version 15, it rendered:

HTML
<link rel="stylesheet" type="text/css" href="/DXR.axd?r=1_18-KG6ua" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=1_8-KG6ua" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5010-MG6ua" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5173-MG6ua" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5177-MG6ua" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5008-MG6ua" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=1_14-KG6ua" /> <link href="../../../App_Themes/SoftOrange/stylesheet.css" type="text/css" rel="stylesheet" /> <link href="../../../App_Themes/SoftOrange/stylesheet_gui.css" type="text/css" rel="stylesheet" />

After version 15, it renders:

HTML
<link href="App_Themes/SoftOrange/stylesheet.css" type="text/css" rel="stylesheet" /> <link href="App_Themes/SoftOrange/stylesheet_gui.css" type="text/css" rel="stylesheet" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=1_32-Ofrmb" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=1_34-Ofrmb" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=1_18-Ofrmb" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5056-Nfrmb" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5214-Nfrmb" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5216-Nfrmb" /> <link rel="stylesheet" type="text/css" href="/DXR.axd?r=0_5054-Nfrmb" />

As you see, the order of my stylesheets vs DevExpress stylesheets is reversed, which makes all cascading impossible.
Please help.

Sincerly,
Monika Biskupska

Comments (2)
Artem (DevExpress Support) 9 years ago

    Hello,

    I've reproduced the issue and we need additional time to research this behavior.
    In the meantime I recommend you use the Theme property instead to apply custom CSS after ours.

    C#
    public override string Theme { get { return "SoftOrange"; } }

    Our Webmail Clientdemo uses the same technique as well.

    Thanks,
    Artem

    MB MB
    Monika Biskupska 9 years ago

      I've tried the Theme approach, but it makes skin files have priority over aspx declarations, so it's not a proper workaround.

      Answers approved by DevExpress Support

      created 9 years ago (modified 9 years ago)

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.