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.
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.