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 (Closed) (Mono Support )

Viewed 16339 time(s), 7 post(s) 11/29/2011 2:29:35 AMby stevescotthome
stevescotthome

stevescotthome

11/29/2011 2:29:35 AM
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/
This content has not been rated yet. 
50 Reputation 7 Total posts
stevescotthome

stevescotthome

11/29/2011 2:43:16 AM
**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
This content has not been rated yet. 
50 Reputation 7 Total posts
khorvat

khorvat

11/29/2011 3:22:53 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
stevescotthome

stevescotthome

11/29/2011 3:25:06 PM
Totally! :)

It's already minified so I'd really just like to exclude it
This content has not been rated yet. 
50 Reputation 7 Total posts
khorvat

khorvat

11/29/2011 3:33:25 PM
We will try to provide you with a solution tomorrow. 

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
stevescotthome

stevescotthome

11/29/2011 3:52:44 PM
Awesome thanks again!
This content has not been rated yet. 
50 Reputation 7 Total posts
khorvat

khorvat

11/30/2011 5:07:10 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts