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

[Solved] OnRowDoubleClick help needed

2 Answers 136 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edgar
Top achievements
Rank 1
Edgar asked on 06 Aug 2013, 08:37 AM
Hello

I just started out making my windows 8 application hobby wise and chose the Telerik Windows 8 components for I'm familiar with Telerik components with my work (.NET components).

What I would like to achieve is if a record in the TelerikGrid is double clicked, then a view is opened with that record. I can't figure out how to get the double click. The view and grid are both working fine.

Can someone point me in the correct direction to achieve this?

[EDIT]
This would be something like what happens in the edit example, but then not inline of the grid. This example edits inline on double click

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 06 Aug 2013, 04:06 PM
Hello Edgar,

Thank you for your interest!

To achieve the behavior you talk about, you have to use a custom command:

  • First, create a class that inherits from the DataGridCommand class and set its Id=CellDoubleTap.
  • Then override its CanExecute and Execute methods where you can implement your custom logic for the behavior.
  • Finally, add an instance of your custom command class to the grid Commands collection.
Here is an article in our online documentation where you can read about the CellDoubleTap command, and you can also take a look at our SDK example that demonstrates how the command can be used in practice.

I hope this was useful and don't hesitate to contact us if you need further assistance.


Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Edgar
Top achievements
Rank 1
answered on 07 Aug 2013, 05:57 AM
Thanks. I can get along with this just fine.
Tags
Grid for XAML
Asked by
Edgar
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Edgar
Top achievements
Rank 1
Share this question
or