Indicate viewController Function for Client Side Event Handler

  1. #1

    Indicate viewController Function for Client Side Event Handler

    Hello Dear,

    My goal is simple, all my Client side event handlers wish to be organised way in {View}Controller.js

    In order to achieve the mention, I did following:

    Indicate controller for view
     X.TreeList().ID("navTreeList")
                        .Config("controller", "navWindowController")                    
                        .Listeners(l=> { l.SelectionChange.Fn = "navTreeList_SelectionChange";  })
    And declare function in the controller:

     navTreeList_SelectionChange : function (sender, event) {
            if (sender.getSelection().hasChildNodes())
                return false;
            // alert()
            return;
    }

    The good thing is that, init function of the controller is called but a navTreeList_SelectionChange event handler is not.

    the reason: eventhendler not faund.

    What should be done for the issue?
    Last edited by andor; Nov 20, 2018 at 3:09 PM.

Similar Threads

  1. Replies: 17
    Last Post: Dec 29, 2012, 6:25 AM
  2. [CLOSED] Client side change component handler function....
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 24, 2012, 3:54 PM
  3. Replies: 1
    Last Post: Sep 28, 2011, 3:50 AM
  4. Replies: 1
    Last Post: Mar 02, 2010, 10:53 AM
  5. Replies: 0
    Last Post: Apr 14, 2009, 6:10 PM

Posting Permissions