Blogs

News

Favorite Posts

ctodx

Discussions, news and rants from the CTO of Developer Express, Julian M Bucknall

From the DevExpress Labs: Early preview of ASP.NET MVC grid

     

We can't help it. We love grids. We love new technology. So the opportunity to marry them together is irresistible. Here's a very early preview of what could become a new product, although I emphasize there is a very long way to go. So don't ask about release dates or betas just yet, just enjoy.

We were slightly dissatisfied with the "force your ASP.NET controls to work in ASP.NET MVC" solution and wondered if there was a way to write a "native" control for ASP.NET MVC. You know the patter by now: MVC gives you full control over your HTML and CSS, etc, and ASP.NET controls tend to be "heavy" in that kind of environment. So, a team went off and did some experiments and wrote some code.

Here's a screenshot of the resulting control:

image

First off, it's read-only; no editing of data yet. But, nevertheless, it's fully interactive: click on the column headers to sort by those headers, drag a header to rearrange the columns:

image

As you can see by the navigation links bottom right, the grid is paged.

And the pièce de résistance: a snapshot of the HTML behind it:

image

Is that clean or what? Some nifty REST links, and it's all ready for that extra touch of custom CSS.

At present there's quite a bit of code that needs to be written to get this up-and-running, and, as this is likely to change, I won't go into any details here. But, note that MVC, in comparison to the traditional ASP.NET, will always require you to write some code. It's that whole "getting full control" thing again.

But, despite all that, a brilliant bit of work from our ASP.NET MVC team. Thanks, guys.

Published Jun 19 2009, 09:44 AM by Julian Bucknall (DevExpress)
Filed under:
Technorati tags: ASP.NET MVC
Bookmark and Share

Comments

 

heather said:

Julian,

I think MVC could get some serious traction.  It is nice to know DX is considering and working toward a goal to support this new and important feature.  REST is definitely getting more important every day.

June 19, 2009 2:35 PM
 

Chris Fillebrown said:

This looks is a great start!

We are on our way to adopting ASP.NET MVC for new web development. Obviously life will be easier with Devexpress controls in our toolkit.

June 19, 2009 3:31 PM
 

Craig said:

This is really nice. I can't wait to see the end result.

June 19, 2009 9:46 PM
 

David Carter said:

Fantastic! I can only encourage you to carry on with the MVC support, the sooner the better!

June 20, 2009 1:02 AM
 

Martin Hart said:

Julian:

That is very impressive indeed. I am currently studying MVC and like the philosophy and the cleanliness of the code, so seeing DevExpress dipping their toe into the pond of MVC is great.

Looking forward to seeing and hearing more.

Martin.

June 20, 2009 2:47 AM
 

Miha Markic - DXSquad said:

I am glad that you are officialy on MVC route. Out of curiosity, how does the grid's definition look like?

June 20, 2009 11:09 AM
 

Schalk said:

Stop wasting time experimenting on new stuff.  We do not have time for this.  Rather finish bugs, suggestions, etc. on existing stuff.  Get v.2009.2 on the road.  Developers have no time to waste.  Please guys.  Do not lose focus as your products are the best.  Keep it that way.

June 21, 2009 8:49 AM
 

Crispin Horsfield said:

Great stuff!  Having just read Steve Sanderson's excellent book on MVC, this is the way I'm heading.

June 21, 2009 11:11 AM
 

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

June 22, 2009 11:50 AM
 

Devexpress Asp.net MVC Grid « EricDotNet said:

Pingback from  Devexpress Asp.net MVC Grid « EricDotNet

June 22, 2009 11:53 AM
 

Julian Bucknall (DevExpress) said:

Schalk, dear chap. You are making unwarranted assumptions about how we as a company divide up our work and our development. That, for example, because a couple of developers in our ASP.NET team have time to work out what it means to have a "component" in ASP.NET MVC, we're delaying v2009.2. I mean, come on.

Cheers, Julian

June 22, 2009 7:15 PM
 

Bill Sheppard said:

I agree with Schalk...time is time, resources are resources...for mine id rather see them focused on existing products.....

On the other hand ya gotta try new stuff or ya get left behind or miss important developments if ur on the bleeding edge...

Like all things happy medium....

June 22, 2009 8:14 PM
 

Fergal Moran said:

Great work Julian, any idea when we may be able to get to have a play with this ourselves?

@Schalk, Devexpress MUST devote resources to new technogies and new frameworks. I am personally quite anxious to get my hands on a decent MVC grid control. If devexpress didn't research things like this their products would simple stagnate and forward thinking developers would be leaving for their competitors. It's stuff like this that has kept me with Devexpress for years now.

June 24, 2009 11:03 AM
 

Russ Painter said:

DevExpress are smart doing this.  My company has made the switch to MVC and rolling our own controls now.  I've used the DevExpress controls in the past, but they're no use to me now.  It's going to be important they're early to market with MVC based controls if they want to maintain their market leader position.

I'm anxiously awaiting any good MVC controls, or maybe MINE will be first to market....

I'm curious how this works.  Are there helper classes that have to be called in the controller manually?

July 2, 2009 4:02 AM
 

Gerald said:

I'm so glad to see that DevExpress is looking into the MVC direction. Is there ANY way I can get involved with beta testing?

July 6, 2009 4:24 AM
 

Corey Meredith_1 said:

We're using DevEx components for a heavy WinForms admin and we're going to use ASP.NET MVC for the web interface.  While it's exciting to see DevExpress playing with MVC, I'm THRILLED that you're not falling into the same trap Telerik has by jamming their heavy ASP controls into MVC.  Bravo!  It's an excellent goal that mirrors the spirit of MVC and it takes some guts considering the potential effort involved.  Every ASP.NET MVC developer should hope it works out.

Thanks.

July 15, 2009 3:24 PM
 

The ASPx Blog - Mehul Harry's DevExpress Blog said:

Check out this slick web-based mail application we’ve created which shows how to use our current ASP

August 13, 2009 6:32 AM
 

IT_Consultant said:

I'm really waiting for the ASP.NET MVC grid

March 12, 2010 12:05 PM

About Julian Bucknall (DevExpress)

Julian is the Chief Technology Officer at Developer Express. You can reach him directly at julianb@devexpress.com. You can also follow him on Twitter with the ID JMBucknall.
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.