This is a migrated thread and some comments may be shown as answers.

Is link is faster ?

5 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Filleau
Top achievements
Rank 1
Filleau asked on 31 Jul 2008, 11:02 AM
Hi,

Actually I have a Radgrid with Filter command.

Grille.MasterTableView.FilterExpression = "([NomComplet] LIKE '" + RadTabABC.SelectedTab.Text + "%')"
Grille.Rebind()

Because it take many time to update grid (I have 300 records in a memory table)
I Want to know if It will be faster if I use Linq expression in order to filter

Thanks

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 31 Jul 2008, 11:31 AM
Hello Filleau,

Generally if you use LINQ to SQL all operations will be executed on the data-base server. You can check this post:
http://blogs.telerik.com/VladimirEnchev/Posts/08-07-17/Maximum_performance_using_Telerik_RadGrid_client-side_data-binding_with_LINQ_to_SQL.aspx?ReturnURL=%2fVladimirEnchev%2fPosts.aspx

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Filleau
Top achievements
Rank 1
answered on 12 Sep 2008, 02:12 PM
Thanks, but in my case I use a memory table, not SQL Server
0
Vlad
Telerik team
answered on 12 Sep 2008, 02:17 PM
Hello Filleau,

By default in .NET 3.5 version of Telerik.Web.UI RadGrid will use LINQ to Objects to filter, sort and page your collection internally. You can control this using EnableLinqExpresions property.

Best wishes,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Filleau
Top achievements
Rank 1
answered on 12 Sep 2008, 02:26 PM
hello,

Yes I know this, but I need to know if running is faster using Link or not.
0
Vlad
Telerik team
answered on 12 Sep 2008, 02:31 PM
Hi Filleau,

Linq to Object against collection of objects is faster compared to DataView.RowFilter.

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Filleau
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Filleau
Top achievements
Rank 1
Share this question
or