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

DoubleClick on GridViewFooterCell ?

2 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas LEBRUN
Top achievements
Rank 1
Thomas LEBRUN asked on 05 Feb 2010, 10:28 AM
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 Answers, 1 is accepted

Sort by
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 05 Feb 2010, 11:51 AM
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 :)
0
Pavel Pavlov
Telerik team
answered on 10 Feb 2010, 01:19 PM
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.
Tags
GridView
Asked by
Thomas LEBRUN
Top achievements
Rank 1
Answers by
Thomas LEBRUN
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or