21 Apr 2009 2:02 AM #1
General Layout question
I'm restructuring my app because of some mistakes in the construction of the layout.
I just want some confirmation and tips regarding my plans.
Included is a jpg on how I want it to be.
Explanation and questions:
The main page has a ViewPort wich contains a Centered panel.
that panel contains a Borderlayout with 3 regions. (North, West, Center)
The North-region contains a logo(header)
the west-region contains a number of links in an accordion-layout
the Center initially contains a homepage (independant aspx page)
I want to display different pages in de center-region after clicking on links from the west-region.
My application runs on ASP.NET MVC.
Do I want to use an asp contentpage in the centerregion,
or do I load the pages into the centerregion?
Thank you for helping
21 Apr 2009 2:32 AM #2
Firstly - I'd think about using Castle Monorail as ASPX will cause you all kinds of problems.
That way you get to use controller methods and views to load the data into the panels. It works a charm for us ona a fairly large reporting/accounting app.
Castle also makes it easy - when used with something like ActiveRecord to return JSON to things like the Ext Grid - doing this with ASP.NET Ajax extensions and the likes is messy adn hacky.
Secondly - sounds like you might find the card layout handy too - an example of this can be found in the actual layout browser code: http://extjs.com/deploy/dev/examples...t-browser.html
Look at how that example is created - it's a good example of what you're trying to achieve. There is also a good example in sakis examples pages: http://examples.extjs.eu/ - from memory - can't access it from here right now...
21 Apr 2009 3:56 AM #3
Hi, thanks for the reply.
I'm not just using asp, but I'm using MVC so this works with controller methods and views to. The ajax handling works with jquery and is fairly easy to implement so loading grids etc is no problem.
But the last example you gave is actually something I'm looking for, but I suppose I better implement this without master/contenct-pages?