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

[Solved] How to use Commanding with CellEditEnded

1 Answer 174 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.
Jason
Top achievements
Rank 1
Jason asked on 23 Oct 2010, 04:32 AM
Can you do this?  I'm trying to stick to MVVM and avoid using a standard event handler to handle the CellEditEnded event.  Essentially, when a user edits a cell in my GridView, I want to hook into that event so that I can recalculate the value of another cell in the same row.  Can I do this using a Command Binding and a CommandParameter to bind to a command in my View Model?  What is the syntax if so?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 25 Oct 2010, 09:52 AM
Hello Jason,

RadGridView provides a set of built-in commands that you can use quite easily by RadGridViewCommands class. One of them that might be helpful for your case is CommitEdit. You may take a look at our demos for further reference about the right way of implementation of those commands.
However, following up your requirement, you may run through this blog post that demonstrates how to take advantage of the idea behind the calculated column.
 

Best wishes,
Maya
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
Jason
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or