on 04-22-2010 2:45 PM
Hello @all,
how can i call a view method from the componentcontroller?
Regards
Chrisp
Hi Chrisp,
Which method of the view you want to call from component controller. It is always better to create methods in component controller or custom controller to use in different views that inhance perfomance for views.
Hope it helps
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Create an event handler in your view for an event of your controller component.
raise this event in your component - then your view should pick up the event, which could handle calling your view method
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
View methods\attributes\ context data are private in nature, you can't call them anywhere else except view.
Create you method in CompController ( mark it public ) and then you can use it across all views present in comp controller.
regards
manas dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.