DoubleClick on GridViewFooterCell ?

3 posts, 0 answers
  1. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 05 Feb 2010 Link to this post

    Is it possible ?

    I've tried the following code:

    private void ConnectDoubleClickOnFooterRow()  
            {  
                this.FooterRow.ChildrenOfType<GridViewFooterCell>().ToList().ForEach(c =>  
                {  
                    var handler = new RoutedEventHandler(click_DoubleClickEvent);  
                    c.RemoveHandler(GridViewCell.MouseDoubleClickEvent, handler);  
                    c.AddHandler(GridViewCell.MouseDoubleClickEvent, handler);  
                });  
            } 


    But it doesn't seems to work...


    Any ideas ?


    Thanks !
  2. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 05 Feb 2010 Link to this post

    I forgot to say that my GridView use AggregateFunctions so, in fact, it's on the control that display the aggregate results that I want to be able to double clic :)
  3. DevCraft banner
  4. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 10 Feb 2010 Link to this post

    Hi Thomas LEBRUN,

    The attached project demonstrates a way to handle double click on footer cell . ( please note that the default template of the footer cell has a null background)  so in the sample you need to click on the total  digits.
    This may be solved with setting the background of the footer cell  to a brush ( even transparent)  so the whole cell will become hit test  visible.

    Greetings,
    Pavel Pavlov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top