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 21505 time(s), 7 post(s) 29.11.2011 02:29:35by stevescotthome
stevescotthome

stevescotthome

29.11.2011 02: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/
Dieser Inhalt wurde noch nicht bewertet. 
50 Reputation 7 Total posts
stevescotthome

stevescotthome

29.11.2011 02: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
Dieser Inhalt wurde noch nicht bewertet. 
50 Reputation 7 Total posts
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
stevescotthome

stevescotthome

29.11.2011 15:25:06
Totally! :)

It's already minified so I'd really just like to exclude it
Dieser Inhalt wurde noch nicht bewertet. 
50 Reputation 7 Total posts
khorvat

khorvat

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

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
stevescotthome

stevescotthome

29.11.2011 15:52:44
Awesome thanks again!
Dieser Inhalt wurde noch nicht bewertet. 
50 Reputation 7 Total posts
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts