New Posts New Posts RSS Feed: Does the DevForce entity collections support standard grid operations
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Does the DevForce entity collections support standard grid operations

 Post Reply Post Reply
Author
alindzon View Drop Down
Newbie
Newbie
Avatar

Joined: 28-Jul-2010
Location: Toronto
Posts: 31
Post Options Post Options   Quote alindzon Quote  Post ReplyReply Direct Link To This Post Topic: Does the DevForce entity collections support standard grid operations
    Posted: 21-Oct-2010 at 11:05am
Please keep in mind I am doing my main data access in the view model ( i have no idea how to use a reporitory for this one)
 
My load data query for this screen is
 

var query = (EntityQuery<Product>)Context.Products.OrderBy(o => o.ProdID).Include("Inventories")

.Where(Data.FilterDescriptors).Sort(Data.SortDescriptors).Skip(startIndex).Take(itemCount);

query.ExecuteAsync().Completed += (s, e) =>{Data.Load(startIndex, e.Results);};

I cache the manufacturers with

var op = Manager.Manufacturers.OrderBy(c => c.ManName).ExecuteAsync();

when the program first loads by calling the manufacturersviewmodel which then hits the repository
 
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 21-Oct-2010 at 10:59am
alindzon,
 
I'll work on a small sample and post.
Back to Top
alindzon View Drop Down
Newbie
Newbie
Avatar

Joined: 28-Jul-2010
Location: Toronto
Posts: 31
Post Options Post Options   Quote alindzon Quote  Post ReplyReply Direct Link To This Post Posted: 15-Oct-2010 at 6:26pm
Could someone please show how the pagedcollectionview can be used in an MVVM Light context (repository, viewmodel, view) to deliver paged content to a datagrid such as the RadGridView and RadDataPager, with server side paging and filtering?
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 13-Sep-2010 at 7:05pm
I believe the EntityQueryPagedCollectionView does a lot of this.  Unfortunately, it's only available for Silverlight and we don't have a WPF version yet.

You can find the Silverlight sample here:

Back to Top
BringerOD View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 27-Aug-2010
Location: USA
Posts: 35
Post Options Post Options   Quote BringerOD Quote  Post ReplyReply Direct Link To This Post Posted: 10-Sep-2010 at 12:54pm
This already seems like a dumb question, but I can't help myself.
 
Using WPF and say Telerik RadGridView can I create a grid and connect it to the Devforce entity collection and have basic features like below without having to code them manually?
  • Crude operation.  Can you click insert and have the grid just work without coding the behavior?
  • Sorting - Server side
  • Filtering - Server side
  • Grouping - Server side
Seems like I have to do most of this manually.
 
Bryan
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down