Nov 20, 2018, 2:56 PM
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
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?
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.