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

Data sources for the GridView and ... problems

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 11 Apr 2011, 10:34 AM
Hi guys. I hope some of you are familiar with the GridView because I'm not having much luck so far.

Okay here's my problem:

I have a GridView (obviously), but I've chosen not to not use the RadDomainDataSource for the source of the data. Instead I've got a view model class (I hope some people are familiar with MVVM) and I expose one of the properties to the GridView. That property is loaded from the domain context object I set up with Ria services.

So the data loads okay, but when it comes to the buttons I get nothing. I've double checked the code I'm using with them and I can't see any errors, so there must be some problem somewhere else.

I did try to call the BeginInsert method on the grid myself, but it crashes here:

Telerik.Windows.Controls.GridViewBoundColumnBase.EvaluateIsReadOnlyState(Object item), which leads to Telerik.Windows.Controls.GridViewBoundColumnBase.CanEdit(Object item) and so on and so forth.
If the rest of those errors will help anyone solve the problem, I will happily provide them.

I appreciate people will tell me to use RadDomainDataSource or QueryableDomainServiceCollectionView, but I never really got how to load two queries at the same time with these things, and with the latter I can't seem to figure out how you'd get access to the data (yes, I have read the blog entries by the Telerik folks).

Ideally, if I could build my own buttons, that would be great, but any advice would be helpful.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 13 Apr 2011, 08:34 PM
Hello Philip,

 What is the type of the property you bind your RadGridView to? Could you please post the code of your view model class so that we can get a better sense of your scenario?

Kind regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or