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

Cell Click and Double-Click

1 Answer 146 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sunu
Top achievements
Rank 1
sunu asked on 03 Feb 2010, 10:05 AM
Hi

I want to implement two events (click & double click ) on gridview cell and have to fire two events based on the events on cell.
XAML
<telerikcontrols:GridViewDataColumn Header="Inv.Code" IsReadOnly="False" > 
                        <telerikcontrols:GridViewDataColumn.CellTemplate> 
                            <DataTemplate> 
                                <TextBlock Text="{Binding Inv_Code}" MouseLeftButtonUp="invCode_MouseLeftButtonUp"/>  
                            </DataTemplate>    
                        </telerikcontrols:GridViewDataColumn.CellTemplate> 
 
                        <telerikcontrols:GridViewDataColumn.CellEditTemplate> 
                            <DataTemplate> 
                                <TextBox Text="{Binding Inv_Code}" Height="24" KeyDown="TextBox_KeyDown"/>  
                            </DataTemplate> 
                        </telerikcontrols:GridViewDataColumn.CellEditTemplate> 
                    </telerikcontrols:GridViewDataColumn> 

C#
 private void invCode_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)  
        {  
            new Login().Show();  
        }  
 
        private void TextBox_KeyDown(object sender, KeyEventArgs e)  
        {  
            if (e.Key == Key.Enter)  
                new InvoiceCodeHistory().Show();  
        } 

My problem is that the Double-click event is not firing since the single click event is already implemented. Please let me know a solution to solve this issue

Regards
Sunu

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 05 Feb 2010, 11:47 AM
Hello sunu,

Since SL 3 does not support native double click, can you please send additional information of how you have implemented it, so we can figure out why it is not firing.

Sincerely yours,
Tsvyatko
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
sunu
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or