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

How to have my MVVM respond to DataLoaded event?

3 Answers 15 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rob Ainscough
Top achievements
Rank 1
Rob Ainscough asked on 16 Oct 2012, 05:10 PM
As far as I can tell, this just can't be done without using additional third party tools (which in itself introduces more bugs/issues).

Or for that matter Deleting event, or Deleted event, or RowActivated event or SizeChange event or ...

"As Is" Command is our only way to bind to view model and that's VERY restrictive.

Comments/Solutions?

Rob.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Oct 2012, 06:28 AM
Hello,

The general approach for handling events in reusable, MVVM style are attached behaviors. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rob Ainscough
Top achievements
Rank 1
answered on 17 Oct 2012, 05:08 PM
Vlad,

Attached behaviors require the Blend SDK (specifically interactivity and interactions) ... as you know there is no "official" version for SL5 ... only a "preview" (it's not supported).

Rob
0
Vlad
Telerik team
answered on 18 Oct 2012, 05:52 AM
Hi,

 I'm referring to completely custom attached behaviors - like this one:
http://demos.telerik.com/silverlight/#GridView/RowContextMenu

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Rob Ainscough
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Rob Ainscough
Top achievements
Rank 1
Share this question
or