RadTextBoxEditor Doubleclick not firing

3 posts, 1 answers
  1. Terry
    Terry avatar
    39 posts
    Member since:
    Sep 2007

    Posted 23 Sep 2011 Link to this post

    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. Answer
    Terry
    Terry avatar
    39 posts
    Member since:
    Sep 2007

    Posted 26 Sep 2011 Link to this post

    Solved by Nikolay from Telerik. Many thanks


    AddHandler
    tbElement.TextBoxItem.HostedControl.DoubleClick, AddressOf tbElement_DoubleClick

  3. Brad
    Brad avatar
    20 posts
    Member since:
    Apr 2010

    Posted 03 Nov 2011 Link to this post

    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
Back to Top