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

MVVM Commands

5 Answers 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrea Rapuzzi
Top achievements
Rank 1
Andrea Rapuzzi asked on 17 Jan 2011, 04:20 PM
Hello,

I'm tryng to modify the Commands example of the gridview to work in an mvvm enviroment but with no avail,
could you please help me ?

I'm using Silverlight 4.0 and Prism

Thanks a lot !

Andrea

5 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 Jan 2011, 04:25 PM
Hello Andrea Rapuzzi,

Could you please point us at any particular scenario that is not working?


All the best,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Andrea Rapuzzi
Top achievements
Rank 1
answered on 17 Jan 2011, 04:41 PM
Hello Milan,
thanks for your response.
I would like to put the grid in editing to add a new record or editing the selected one using buttons above the grid, but I don't know how to achieve this goal.

Thanks again !

Andrea
0
Maya
Telerik team
answered on 18 Jan 2011, 09:59 AM
Hello Andrea Rapuzzi,

I am sending you a sample project illustrating how to achieve the desired result. Let me know in case you need any further assistance.
 

All the best,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Andrea Rapuzzi
Top achievements
Rank 1
answered on 18 Jan 2011, 10:16 AM
Hello Maya,

I haven't realized it's so simple !!

Thanks

Andrea
0
Dan Harvey
Top achievements
Rank 2
answered on 28 Mar 2011, 06:49 PM

Hello, was there anything more to this example besides this:

 

<telerik:RadButton Name="Button1" 
Content="Insert item" 
Command="telerik:RadGridViewCommands.BeginInsert" CommandTarget="{Binding ElementName=clubsGrid}"
Margin ="5" 
HorizontalAlignment="Left"/> 

 



Because, I was unable to get this working.  No row is inserted.  I replaced the "clubsGrid" with my datagrid.

Thanks,
Tags
GridView
Asked by
Andrea Rapuzzi
Top achievements
Rank 1
Answers by
Milan
Telerik team
Andrea Rapuzzi
Top achievements
Rank 1
Maya
Telerik team
Dan Harvey
Top achievements
Rank 2
Share this question
or