Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:51:29+00:00 2026-06-13T21:51:29+00:00

My web app is using a large icon set with jquery-ui and jqgrid. In

  • 0

My web app is using a large icon set with jquery-ui and jqgrid.
In order to easily maintain the changes to the CSS to accommodate the larger icons when upgrading jquery-ui or jqgrid I have a separate CSS file where I have a bunch of overrides.

As you can imagine this override file MUST be included after the jquery-ui stylesheet and the jqgrid style sheet.

I put all my stylesheets into a bundle like so

bundles.Add(new StyleBundle("~/Content/dark-hive/allstyles").Include(
    "~/Content/dark-hive/jquery-ui-1.8.23.custom.css",
    "~/Content/ui.jqgrid.css",
    "~/Content/jquery-ui-fixes.css",
    "~/Content/icons.css",
    "~/Content/site.css"));

But it is being rendered like so!

<link href="/Content/dark-hive/jquery-ui-1.8.23.custom.css" rel="stylesheet"/>
<link href="/Content/jquery-ui-fixes.css" rel="stylesheet"/>
<link href="/Content/ui.jqgrid.css" rel="stylesheet"/>
<link href="/Content/icons.css" rel="stylesheet"/>
<link href="/Content/site.css" rel="stylesheet"/>

How can I configure my bundle to render in the correct order?

Update
Ok, this is dumb but it worked.

No matter what I did the files would always render incorrectly. So I tried something stupid and added jquery-ui-fixes.css first and jquery-ui-1.8.23.custom.css last.

Suddenly my order is

<link href="/Content/jquery-ui-fixes.css" rel="stylesheet"/>
<link href="/Content/dark-hive/jquery-ui-1.8.23.custom.css" rel="stylesheet"/>
<link href="/Content/ui.jqgrid.css" rel="stylesheet"/>
<link href="/Content/icons.css" rel="stylesheet"/>
<link href="/Content/site.css" rel="stylesheet"/>

I renamed my javascript file to jqueryuifixes.css and now it’s order is preserved in the lower js files.

I’m thinking that if a stylesheet has a – in the name it gets prioritized first for some reason and it’s order is maintained with other files with a – in it.

If anyone can explain this I’ll give them the check.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:51:31+00:00Added an answer on June 13, 2026 at 9:51 pm

    If you include each file individually, the bundle will respect your order…

    var bundle = new Bundle("~/Content/dark-hive/allstyles", new StyleBundle());           
    bundle.Include("~/Content/dark-hive/jquery-ui-1.8.23.custom.css");
    bundle.Include("~/Content/ui.jqgrid.css");
    bundle.Include("~/Content/jquery-ui-fixes.css");
    bundle.Include("~/Content/icons.css");
    bundle.Include("~/Content/site.css");
    bundles.Add(bundle);
    

    UPDATE

    Even using explicit order, you’ll find that there is a rather handy built-in ordering system that orders specifically named files first over all others. To completely clear this out, you can use:

    bundles.FileSetOrderList.Clear();
    

    And you can add your own custom ordering using:

    BundleFileSetOrdering ordering = new BundleFileSetOrdering("My Order");
    ordering.Files.Add("jquery.js");
    
    bundles.FileSetOrderList.Clear();
    bundles.FileSetOrderList.Add(ordering);
    

    Essentially, there is a massive built-in list of files that will get put in a certain order before any file that isn’t in the list – but these options let you take control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment,
I have an existing large(ish) PHP web app (using Apache and MySQL) which now
I'm using the Google Closure Library for a large scale web app. Basically I
I'm introducing LESS to a large web app project to simplify my CSS. I've
I am creating a web app using jQuery Mobile and PhoneGap. There is a
We are using TFS 2008 for Web App dev. The WebApp is a large
We're building a large web app that has numerous layers. In order to communicate
I am developing a web app using C#, .net 4. I have a grid
I'm developing web app using Spring Integration to route my messages, but I have
I'm developing a web app using a cakephp. I've one function in which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.