double click event on rowdetails not working

6 posts, 0 answers
  1. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 11 Oct 2011 Link to this post

    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 ?
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 11 Oct 2011 Link to this post

    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 >>

  3. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2011 Link to this post

    So in that case would i have to programatically check for double clicks, instead of using 
    AddHandler(GridViewCellBase.CellDoubleClickEvent, 
    provided by the Grid?
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 12 Oct 2011 Link to this post

    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 >>

  5. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2011 Link to this post

    can u redirect me to any existing forum link, which has this double click has been done programatically? That would be very helpful.
  6. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 12 Oct 2011 Link to this post

    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 >>

Back to Top