Blogs

Gary's Blog

XAF – Web Applications: Lightweight Rendering Mode

     

XAF_LargeBefore I disappear for a few days holiday over the Christmas period, I just wanted to leave you with a little “present” from the XAF team. Now, you may have already heard that we have planned a lot of improvements to the XAF Web UI for 2011, including web application performance optimization. We have already taken the first few steps in this direction and we’d love to share the results with you. We are excited to let you know that the XAF Web UI now supports the Lightweight Rendering Mode of our web controls! Check out Mehul’s blog for details of the benefits of this mode.

To make this work, the XAF team carried out deeper testing and fixed a lot of issues, however, we would still like to call it “beta” support in 10.2. Because of this, we would like to ask you to try it out in your own XAF web applications. Of course, we would love to hear your feedback and to fix any issues you may find. If all goes according to plan, we will enable the Lightweight Rendering Mode in XAF by default, in 2011.1. Smile

So How do You Turn it on?

You can enable this mode on in your Global.asax.cs code, for instance, using the following statement:

protected void Application_Start(object sender, EventArgs e) {
    DevExpress.ExpressApp.Web.RenderHelper.RenderMode = 
        DevExpress.Web.ASPxClasses.ControlRenderMode.Lightweight;
}

This switch turns on Lightweight Rendering Mode for all controls, as of this time, those are ASPxPageControl, ASPxNavBar and ASPxMenu.

What are benefits of This Mode?

Well, numbers showing the improvements are provided in the blog post above. In reality, it depends on your particular case, primarily on how many navigation items are in your application, how many tabbed groups in your views layout, how many nested views you are using, how many actions shown and so on. Using our MainDemo.Web application we have about 20% less traffic using Lightweight rendering mode. So, if you have a slow internet connection it is worth trying.

As always, we are eager to hear your thoughts in the comments below.

Well that’s all we have for you this year. I’m sure you’ll agree it’s been a good year for XAF and we’ll be back next year to carry on the good work, so until then, happy XAFing and Merry Christmas Smile

Published Dec 23 2010, 07:28 PM by Gary Short (DevExpress)
Filed under:
Technorati tags: XAF
Bookmark and Share

Comments

 

M. Brekhof said:

20% reduction in the average page size in my xaf app with one line of code, not bad. This is in 10.2.3, is it supposed to work in this version (if so, why wasn't it there from the start?)

Anyway, nice job and Merry Christmas.

December 24, 2010 10:17 AM
 

Dennis (DevExpress Support) said:

Thank you for the feedback, Martin!

It will work starting from version 10.2.4 (www.devexpress.com/issue=S35565).

We decided not to enable this mode, by default, in a minor version, so as not to break our customers projects, in case we missed some issues. We will continue to polish this mode, and hope to enable it in 11.1, by default.

Merry Christmas to you and yours!

December 24, 2010 11:32 AM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.