This question is locked. New answers and comments are not allowed.
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
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
