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 4:09 PM.

Similar Threads

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

Posting Permissions