in
Forums
Blogs
Files
Devexpress.Com
ClientCenter

The ASPx Blog

Screencast: Enable Server Mode using LINQ (ASPxGridView & XtraGrid)

In a previous post, I showed you how to use the powerful Server mode feature in ASPxGridView and XtraGrid against large datasets. The response to Server mode was so good that we've extended the ways that you can enable it.

You can now use a LINQ provider to work with our .NET grids in Server mode. The latest release, 2008 Volume 1, introduces two new datasources to support LINQ.   LinqServerModeDataSource supports the ASPxGridView and the LinqServerModeSource supports the XtraGrid. To use these datasources against either the ASPxGridView or XtraGrid, try the steps demonstrated in the short screencasts below.

ASPxGridView Screencast

image

XtraGrid Screencast

image[3]

The LINQ support in Server mode is bleeding-edge technology which gives you the performance gains for your projects. Check out this cool feature then let me know how you're using LINQ and how you plan to use these new LINQ datasources.

Comments

 

Rinat Abdullin said:

Mehul,

Sorry for the naive questions, but still:

What is the difference between LinqServerModeDataSource LinqServerModeSource?

Are there any performance gains of using new data sources as opposed to XPServerCollectionSource (esp, in the number of roundtrips)? Are there any performance measurements?

Best regards,

Rinat Abdullin

NB for the Web Admins: You can easily bind the RSS feed directly to devexpress domain (just requires minor DNS tweak). Feedburner supports that.

March 25, 2008 5:33 AM
 

Mehul Harry (Developer Express) said:

Hello Rinat,

"LinqServerModeDataSource supports the ASPxGridView and the LinqServerModeSource supports the XtraGrid" Smile

As for performance, the server mode is still blazingly fast with the new datasources. I'll see if there are any measurements. Thanks for the tip on the RSS Feed.

March 25, 2008 5:54 AM
 

Ben Hayat said:

Mehul;

This would be my first to use LinqServerModeDataSource, and here is my question. As you know, ASP.Net provides LinqDatasource that you can use.

a) Is yours a replacement to the stock LinqDataSource?

b) If yes, can you point out what are the differences?

c) Can we use your DataSource with some of the ASP.Net stock (std) controls that come with VS2008 or should we use yours only for DX products?

Thanks!

..Ben

March 25, 2008 10:30 AM
 

Mehul Harry (Developer Express) said:

Hello Ben,

LinqServerModeDataSource doesn't replace the standard class. It allows you to use an ASPxGridView (or XtraGrid) in server mode with any LINQ data source.

These new datasources can only be used with controls that support the IListServer (server mode) interface.

Thanks.

March 25, 2008 2:34 PM
 

Ben Hayat said:

Thanks Mehul!

..Ben

March 25, 2008 5:16 PM
 

Kavan Shaban said:

Hi,

Will this work for any Linq provider or are the DevEx Linq data sources specific to Linq2Sql.

Thanks,

Kavan

March 26, 2008 2:28 PM
 

Scott Cate's WebLog said:

Today, I ran across the Developer Express ASP.NET blog , where they have several screen casts about using

March 27, 2008 8:01 PM
 

Community Blogs said:

Today, I ran across the Developer Express ASP.NET blog , where they have several screen casts about using

March 27, 2008 8:45 PM
 

Dan Wahlin's WebLog said:

I'm one of those developers that likes to build things myself mainly because the challenge is fun. 

March 28, 2008 2:38 AM
 

Mehul Harry (Developer Express) said:

Hello Kavan,

These new LINQ datasources works with other LINQ providers as well. Support has tested and verified that LINQ to XML works fine.

Thanks.

March 28, 2008 5:00 AM
 

Boris Soto said:

Can some one sent me the code on Vb for the grid linq as posted in the XtraGrid Screencast

I can not figure out what goes with

Namespace Form1

    Public Partial Class Form1:Form

       Public Form1()

           InitializeComponet()

   End Class

March 29, 2008 8:45 PM
 

Steven Smith said:

Mehul has a couple of screencasts up on his blog that demonstrate how to use their new LINQ datasource

March 31, 2008 11:15 AM
 

Mehul Harry (Developer Express) said:

Hello Boris,

Sure, here you go:

Public Class Form1

    Sub New()

    InitializeComponent()

    linqServerModeSource1.QueryableSource = New DataClasses1DataContext().Customers

    End Sub

End Class

Thanks.

April 1, 2008 3:58 PM
 

ctodx said:

In all the excitement of releasing both DXperience v2008 vol1 and our VCL Subscription build 34 on the

April 1, 2008 6:54 PM
 

.Net World said:

Mehul has a couple of screencasts up on his blog that demonstrate how to use their new LINQ datasource

April 2, 2008 4:24 PM
 

alexnikolof said:

Is the new Linq to SQL Data source supporting also Entity Framework

Database Objects

April 7, 2008 4:34 AM
 

Mehul Harry (Developer Express) said:

Hi Alex,

Yes, the LINQ support will work any LINQ provider. I believe LINQ to Entities should work as well.

Thanks.

April 15, 2008 2:29 PM
 

Emanuele Gigli said:

Hi,

is it possibile to use LinqServerMode with the PivotGridControl.

it's another control that need to be used too in server mode!

May 9, 2008 11:17 AM
 

Mehul Harry (Developer Express) said:

Hi Emanuele,

Unfortunately the ASPxPivotGrid control cannot use the LinqServerModeDataSource. Take a look at the following issue for an explanation:

www.devexpress.com/.../Training.xml

Thanks.

May 9, 2008 1:44 PM
 

The ASPx Blog said:

Check out this 4 minute video on a very useful feature in the 2008 vol 2 release. The video/screencast

July 10, 2008 7:01 PM

Leave a Comment

(required)  
(optional)
(required)  
Verification code: Required
   
Add
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED