[CLOSED] Adding a Listener to a ComboBox Subclass

  1. #1

    [CLOSED] Adding a Listener to a ComboBox Subclass

    Good Morning all

    I got a ComboBox Object which is as Subclass of the Ext.Net.ComboBox. Now I need to add a Handler to the Select Event of this Combo...

    Thats my Code so far...

      Public Class CodeComboBox
        Inherits ComboBox
    
        ...
    Private Sub CodeComboBoxBeforeClientInit(sender As Observable) Handles Me.BeforeClientInit
    Listeners.Select.Handler = "validateCurrentValue"
    End Sub
    <DirectMethod()> Public Function validateCurrentValue() Return True End Function
    End Class
    The Handler can't be found like that. What is the correct Parameter for

    Listeners.Select.Handler = "validateCurrentValue"
    In my case ?

    Thanks for your Help

    Peter
    Last edited by Daniil; Mar 20, 2015 at 11:51 AM. Reason: [CLOSED]
  2. #2
    Hi Peter,

    There are two moments, at least.

    1. Please see the sources of #1 here:
    https://examples2.ext.net/#/Events/D...hods/Overview/

    The SetTimeStamp DirectMethod is called with:
    <Click Handler="App.direct.SetTimeStamp();" />
    By default, JavaScript call functions of DirectMethods are shared in the `App.direct` namespace.

    2. If you encapsulate DirectMethods to a control, please read this thread:
    http://forums.ext.net/showthread.php?15060

Similar Threads

  1. Replies: 7
    Last Post: Feb 13, 2015, 8:05 AM
  2. [CLOSED] adding listener to dynanically generated accordion
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 12, 2011, 4:37 PM
  3. Subclass Ext.NET v1.0
    By mtpanissa in forum 1.x Help
    Replies: 0
    Last Post: Jun 25, 2010, 8:58 PM
  4. [CLOSED] adding handler listener in codebehind
    By ashton.lamont in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 05, 2010, 4:50 PM
  5. Adding Tabs With OnActivate Listener
    By juan_pablo in forum 1.x Help
    Replies: 4
    Last Post: Apr 25, 2010, 3:28 PM

Posting Permissions