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

[Solved] RadGridView, MVVMLight, and events

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 05 Nov 2010, 12:07 AM
Hi,
I am trying to move my application to MVVM and am having several issues.

First,  getting grid events to invoke some my handlers in my VM (via MVVMLight) is problematic.  For example, GRIDLoaded seems to work fine.  But the GRIDDataLoaded handler is never called, GridSorting is called, but changing the event args to change sort order has no effect, GridFiltered does not seem to work also and disables and hangs the filter context menu.

Second, Context on the grid seems to get messed up when I move back and forth between modules (we are using PRISM).  When moving back and froth between the modules, the grid appears be retaining the columns collection even when I clear the collection. 

These all work fine in my non-MVVM version, but as soon as I put just one event into the VM things start to fail. 

Any suggestions on how to proceed?

Thanks,

Jerry

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Nov 2010, 10:42 AM
Hello,

 I'm not sure why you need to use events at all in MVVM environment - can you clarify?

All the best,
Vlad
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
Jerry Kurata
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or