Base solution for your next web application
Open Closed

Sidebar's sub levels not expanding after upgrade #646


User avatar
0
doubledp created

Hi,

It seems like I might have broken something during the upgrade. I went from version 1.5.0.0 to 1.7.0.0 (Quite a painful exercise I might add).

The problem I am experiencing now is that sidebar navigation does not expand when clicking on it. I have inspected the element that should contain items and the rendered HTML does contain those items, but the expansion does not happen.

Any ideas what the problem might be?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    doubledp created

    Ok it seems like I managed to track down what is causing this issue; the original layout's script doesn't seem to work correctly.

    I have changed the code in AppBundleConfig as follows:

    From

    bundles.Add(
                  new ScriptBundle("~/Bundles/App/metronic/js")
                      .Include(
                          "~/metronic/assets/global/scripts/app.js",
                          "~/metronic/assets/admin/layout/scripts/layout.js"
                      ).ForceOrdered()
                  );
    

    To

    bundles.Add(
                  new ScriptBundle("~/Bundles/App/metronic/js")
                      .Include(
                          "~/metronic/assets/global/scripts/app.js",
                          "~/metronic/assets/admin/layout4/scripts/layout.js"
                      ).ForceOrdered()
                  );
    

    This issue is not related to ASP.NET Zero, but rather the Metronic theme.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)