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

double click event on rowdetails not working

5 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 11 Oct 2011, 01:20 PM
The double click event does not work with the rowdetailstemplate. That is, I have a row details template and when i double click on that area the handler does not get execute. Any special handling to be done here ?

5 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 Oct 2011, 01:34 PM
Hi Mirang,

 

You may try to use the events fired from the elements inside the RowDetails - the TextBox-es and Buttons for example. Once you capture the neccessary event, you can implement the logic you need inside.
You may take a look at the following forum thread which demonstrates how to access different elements from RowDetails. The same is valid for Silverlight as well.


If you need any additional information do not hesitate to contact us! 



All the best,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
mirang
Top achievements
Rank 1
answered on 12 Oct 2011, 09:32 AM
So in that case would i have to programatically check for double clicks, instead of using 
AddHandler(GridViewCellBase.CellDoubleClickEvent, 
provided by the Grid?
0
Vanya Pavlova
Telerik team
answered on 12 Oct 2011, 09:39 AM
Hi Mirang,

 

Thank you for getting back to us! 
Yes, you should do exactly the same. From the UX point of view the RowDetails elements is simply a Border with single ContentPresenter, there are no GridViewCells. You are the person who defines these details and you shoud check by your side for double clicks. 



Best wishes,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
mirang
Top achievements
Rank 1
answered on 12 Oct 2011, 09:40 AM
can u redirect me to any existing forum link, which has this double click has been done programatically? That would be very helpful.
0
Vanya Pavlova
Telerik team
answered on 12 Oct 2011, 09:59 AM
Hello Mirang,

 

There are lots of articles on this topic.
I have spent some time to select several of these which might be useful for you on that matter:

                                        "The simplest way to detect DoubleClick in Silverlight" 
                                                     "How to use Double Click on textbox?"
                                                       "Mouse Double Click Event RSS"



If you need any additional info do not hesitate to contact us! 



Kind regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
mirang
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
mirang
Top achievements
Rank 1
Share this question
or