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

RadTextBoxEditor Doubleclick not firing

2 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 23 Sep 2011, 05:43 PM

Hello All,

I have added a handler to try and capture the double click of an editing cell on a grid - it never reaches the stop statement, the keydown item fires fine. Can anyone give me some pointers?

 

Private Sub radGridView1_CellEditorInitialized(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles RadGridView1.CellEditorInitialized
       Dim tbEditor As RadTextBoxEditor = TryCast(Me.RadGridView1.ActiveEditor, RadTextBoxEditor)
       If Not tbEditor Is Nothing Then
           If (Not tbSubscribed) Then
               tbSubscribed = True
               Dim tbElement As RadTextBoxEditorElement = CType(tbEditor.EditorElement, RadTextBoxEditorElement)
               tbElement.TextBoxItem.Tag = Me.RadGridView1.Name
               AddHandler tbElement.TextBoxItem.KeyDown, AddressOf tbElement_KeyDown
               AddHandler tbElement.DoubleClick, AddressOf tbElement_DoubleClick
           End If
       End If
   End Sub
   Private Sub tbElement_DoubleClick(ByVal sender As Object, ByVal e As EventArgs)
       Stop
   End Sub
 
 
   Private Sub tbElement_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
 
       If e.KeyCode = Keys.F1 Then
           Stop
       End If
 
 
 
   End Sub

2 Answers, 1 is accepted

Sort by
0
Accepted
Terry
Top achievements
Rank 1
answered on 26 Sep 2011, 01:33 PM
Solved by Nikolay from Telerik. Many thanks


AddHandler
tbElement.TextBoxItem.HostedControl.DoubleClick, AddressOf tbElement_DoubleClick

0
Brad
Top achievements
Rank 1
answered on 03 Nov 2011, 04:43 PM
Hi, 

Thanks for adding that second post, it helped me get Cell Editor Double Click events firing when a Rad GridView is not in Read Only mode (ReadOnly = false). I have posted a code example in this thread.

http://www.telerik.com/community/forums/winforms/gridview/rad-grid-celldoubleclick-event.aspx
Tags
GridView
Asked by
Terry
Top achievements
Rank 1
Answers by
Terry
Top achievements
Rank 1
Brad
Top achievements
Rank 1
Share this question
or