Indicate viewController Function for Client Side Event Handler
up vote
0
down vote
favorite
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?
c# asp.net-mvc ext.net
add a comment |
up vote
0
down vote
favorite
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?
c# asp.net-mvc ext.net
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
c# asp.net-mvc ext.net
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?
c# asp.net-mvc ext.net
c# asp.net-mvc ext.net
asked 22 hours ago
Andro Lomtadze
92
92
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408100%2findicate-viewcontroller-function-for-client-side-event-handler%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown