MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

WAO hates KendoUI (Zatvorena) (Mono Support )

21354 put(a) pogledan, 7 odgovor(a) 29.11.2011. 2:29:35Kreirao(la) stevescotthome
stevescotthome

stevescotthome

29.11.2011. 2:29:35
Heads up, WAO mangles KendoUIs common stylesheets pretty badly...I think perhaps because it's trying to minify a minified file??

Anyway, I'm going to try to exclude that particular file :)

http://www.kendoui.com/
Ovaj sadržaj još nije ocijenjen. 
50 Reputacija 7 Ukupno objava
stevescotthome

stevescotthome

29.11.2011. 2:43:16
**EDIT**

Sorry, what would the proper syntax be for an exclude?

<ExcludedPaths>
                <clear/>
                <!--Example-->
                <add name="kendo.common.min.css" path="/css/KendoUI/" />
            </ExcludedPaths>

This doesn't seem to work
Ovaj sadržaj još nije ocijenjen. 
50 Reputacija 7 Ukupno objava
khorvat

khorvat

29.11.2011. 15:22:53
Hi,

I have reviewed the code and current version doesn't have exclude functionality for the CSS and JavaScript minifier. We can extend a minifiers to allow you to override the necessary methods and add your custom rules, is that an option for you ?

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
stevescotthome

stevescotthome

29.11.2011. 15:25:06
Totally! :)

It's already minified so I'd really just like to exclude it
Ovaj sadržaj još nije ocijenjen. 
50 Reputacija 7 Ukupno objava
khorvat

khorvat

29.11.2011. 15:33:25
We will try to provide you with a solution tomorrow. 

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
stevescotthome

stevescotthome

29.11.2011. 15:52:44
Awesome thanks again!
Ovaj sadržaj još nije ocijenjen. 
50 Reputacija 7 Ukupno objava
khorvat

khorvat

30.11.2011. 17:07:10
Hi,

I have sent you a WAO assembly via direct message. To implement your custom exclude filter you will need to inherit from the MonoSoftware.Web.WAO.Handlers.CssHandler and override the following method:
OnOptimizing(HttpContext context, CancelEventArgs e)

Here you can put your custom exclude filter and cancel the optimization for current request.

Let us know if this has helped you so we can sign off this task.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava