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

[Solved] Select gridviewrow when context menu is open in MVVM pattern

4 Answers 188 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.
Shweta
Top achievements
Rank 1
Shweta asked on 18 Feb 2011, 08:02 AM
Hi,

I am using telerik RadGridview for silverlight. I wnat to select teh row when I irght click and open Gridview Context Menu. We can do it through Contextmneu opne venet handler but I m using MVVM opattern so Can you please help me how to  handle this event from my View Model so taht my context menu is open the row is selected.

thanks ,
Shweta

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Feb 2011, 05:55 PM
Hello Shweta,

You may create an attached behavior as illustrated in our demos

Regards,
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Shweta
Top achievements
Rank 1
answered on 22 Feb 2011, 06:08 PM
Hi Maya,

In demo contextmenu is at column header. in my case Context menu is opne hwen we right lcick on any cell. I wnat to select the row where context menu is clciked.

Thanks & Regards,
Shweta 
0
Maya
Telerik team
answered on 22 Feb 2011, 06:18 PM
Hello Shweta,

The example mentioned shows how you may add a ContextMenu by attached behavior. You need to extend it a bit so that it meets your requirements. 

All the best,
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Shweta
Top achievements
Rank 1
answered on 25 Feb 2011, 02:11 PM
Thanks it worked :-)
Tags
GridView
Asked by
Shweta
Top achievements
Rank 1
Answers by
Maya
Telerik team
Shweta
Top achievements
Rank 1
Share this question
or