Upgrading to jQuery.UI.Combined 1.11.0

Upgrading to jQuery.UI.Combined 1.11.0

  • Comments 2

The jQueryUI team released a new version of their library recently. This release has some changes which will impact your apps as you migrate to 1.11.0. This post will highlight the changes you need to do to use jQuery.UI.Combined NuGet package.

Changes

I am going to highlight the change that is relevant to this post. For a full list of changes/ release notes see the changelog and upgrade guide on the  jQueryUI team site.

The jQuery.UI.Combined NuGet package combines the jQueryUI controls and a base theme. In 1.11.0, the jQuery UI team has renamed the files in the base theme. The change was to drop “jquery.ui” from all the CSS and Javascript filenames. This change was done to add AMD support.

The minified files for the base theme have been removed as well.

Migrating apps

  • If you have an app that is linking to these file names then you will have to update the link references to pull in the correct file names.
  • If you are using ASP.NET Web Optimizationfeature, then you would have to update your BundleConfig to add the updated filenames. Web Optimization was used in the ASP.NET Web Forms, MVC, Web API and SPA templates that were shipped with Visual Studio 2012 and 2013.
    • The following code shows the updated BundleConfig. If you are using the ASP.NET MVC or Web API  templates from VS 2012/ 2013, then you can find this file in App_Start folder of your site.
Code Snippet
  1. bundles.Add(newStyleBundle("~/Content/themes/base/css").Include(
  2.             "~/Content/themes/base/core.css",
  3.             "~/Content/themes/base/resizable.css",
  4.             "~/Content/themes/base/selectable.css",
  5.             "~/Content/themes/base/accordion.css",
  6.             "~/Content/themes/base/autocomplete.css",
  7.             "~/Content/themes/base/button.css",
  8.             "~/Content/themes/base/dialog.css",
  9.             "~/Content/themes/base/slider.css",
  10.             "~/Content/themes/base/tabs.css",
  11.             "~/Content/themes/base/datepicker.css",
  12.             "~/Content/themes/base/progressbar.css",
  13.             "~/Content/themes/base/theme.css"));

 

    • The following code shows the updated Bundle.config. If you are using the ASP.NET Web Forms templates from VS 2012/ 2013, then you can find this file in root of your application.
Code Snippet
  1. <styleBundlepath="~/Content/themes/base/css">
  2.   <includepath="~/Content/themes/base/core.css" />
  3.   <includepath="~/Content/themes/base/resizable.css" />
  4.   <includepath="~/Content/themes/base/selectable.css" />
  5.   <includepath="~/Content/themes/base/accordion.css" />
  6.   <includepath="~/Content/themes/base/autocomplete.css" />
  7.   <includepath="~/Content/themes/base/button.css" />
  8.   <includepath="~/Content/themes/base/dialog.css" />
  9.   <includepath="~/Content/themes/base/slider.css" />
  10.   <includepath="~/Content/themes/base/tabs.css" />
  11.   <includepath="~/Content/themes/base/datepicker.css" />
  12.   <includepath="~/Content/themes/base/progressbar.css" />
  13.   <includepath="~/Content/themes/base/theme.css" />
  14. </styleBundle>
Leave a Comment
  • Please add 5 and 3 and type the answer here:
  • Post
  • Thanks! I wondered where all of my jquery-ui.* files went in my solution!

  • AspNet.ScriptManager.jQuery.UI.Combined 1.11.1 is linking to wrong js file:

    Path = "~/Scripts/jquery-ui-" + str + ".min.js",

    The correct is: Path = "~/Scripts/jquery-ui.min-" + str + ".js",

Page 1 of 1 (2 items)