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

Using a different ViewModel for InForm editing

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ozzy Knox
Top achievements
Rank 1
Ozzy Knox asked on 29 Nov 2010, 06:57 PM
The standard functionality offered by the Telerik MVC Grid forces you to have to use the same ViewModel class that you use for the list of items in the grid.  However, in reality there is often the requirement to use a separate Model because the grid shows a scaled down, summarised view of your data.  Is there a way, when using InForm editing, to specify a the more detailed ViewModel for editing?

This will be extremely helpful if we can customise the standard behaviour in this way.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Nov 2010, 07:57 AM
Hello Ozzy Knox,

 This is not supported. The grid can edit only the model specified during databinding. However I am not sure why you need this. Can't you just create columns for the desired properties?

Regards,
Atanas Korchev
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
Grid
Asked by
Ozzy Knox
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or