-
FEATURED COMPONENTS
First time here? Check out the FAQ!
On create Event, I want to fire the Edit Event. Since I'm new to ZK, I want to know if I can use addForward on Calendars object to make it happen.
Really? its not so hard? ;D
Hello!
Assumptions option ONE:
1 - "Calendars objects" = <datebox/> components
2 - "On create Event, I want to fire the Edit Event." = when the page loads -> the calendar auto opens itself
Solution:
<datebox open="true" />
Assumptions option TWO:
1 - you are really referring to ZK Calendars
Solution:
Of course you can always forward events!
<window id="win" title="Container Window" border="normal" apply="test01.test.MyController">
<calendars id="calendars" forward="onEventCreate=onEventEdit" />
</window>
and in your controller:
public class MyController extends GenericForwardComposer {
public void onEventEdit(ForwardEvent event) {
Messagebox.show("onEventEdit fired");
}
}
If both my assumptions are wrong, please articulate better your needs :) Giovanni
Asked: 2016-02-02 10:01:53 +0800
Seen: 30 times
Last updated: Feb 17 '16
How to add zCalendar events on startup through java code.
Sign out all desktops in a Session
ZK how to stop OnClick event of tab? [closed]
Execute Javascript on component visible
ZK Clustering, Session Replication Question [closed]
Problem binding values to a composite component