iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
in my app i have multiple places where i will be using editable grids. The ClientEditingEditViewModel has all the code for the preparing new rows, inserting, canuseradd etc. It seems like the code from this module for the methods and properties for an editable grid are just copied into each ViewModel that handles a grid rather than creating a generic ViewModel that handles all grids. Am I correct in thinking that?
example
CustomerEditViewModel / ProductsEditViewModel / CategoriesEditViewModel
All of these would start out with all the properties and methods that are in ClientEditingViewModel and each would have specific methods and properties for the applicable model. Is that correct?
... The ClientEditingEditViewModel has all the code for the preparing new rows, inserting, canuseradd etc. It seems like the code from this module for the methods and properties for an editable grid are just copied into each ViewModel that handles a grid rather than creating a generic ViewModel that handles all grids...
Yes, I agree that implementing such pattern, to create a generic ViewModel that handles generic on all grid, would be better than copied the methods and properties into each ViewModel.
Intersoft ClientUI MVVM Data Application (WPF) project template has implemented this pattern. It has EditableGridViewModelBase and EditableGridViewModelGenericBase (this class is located in [ProjectName]\ViewModels.Infrastructure). Hence, we can simply inherit from those classes and use it in our ViewModels, for example: ProductsViewModel.
Thanks again for your message. The ideas and suggestions of innovative, thinking people are always welcome.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname