Dec 29, 2011, 8:22 AM
Calendar EventEditWindow (always the same record)
Hello.
I made a very simple example with two events. The fact is that when I click on them, provided I get information on the event "My event 1".
What I can be doing wrong?
A greeting and thank you very much.
I made a very simple example with two events. The fact is that when I click on them, provided I get information on the event "My event 1".
What I can be doing wrong?
A greeting and thank you very much.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.Net Example</title>
<script type="text/javascript">
var CompanyX = {
getWindow: function () {
return CompanyX.EventEditWindow1;
},
record: {
show: function (cal, rec, el) {
//console.log(rec);
CompanyX.getWindow().show(rec, el);
}
}
};
</script>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="CompanyX" />
<ext:Viewport ID="Viewport1" runat="server" Layout="fit">
<Items>
<ext:CalendarPanel ID="CalendarPanel1" runat="server" Height="500">
<EventStore ID="EventStore1" runat="server">
<Events>
<ext:Event
Title="My event 1 "
StartDate="2011/12/28"
EndDate="2011/12/28"
CalendarId="1" />
<ext:Event
Title="My event 2"
StartDate="2011/12/29"
EndDate="2011/12/29"
CalendarId="2" />
</Events>
</EventStore>
<GroupStore ID="GroupStore1" runat="server">
<Groups>
<ext:Group CalendarId="1" Title="Home" />
<ext:Group CalendarId="2" Title="Work" />
</Groups>
</GroupStore>
<Listeners>
<EventClick Fn="CompanyX.record.show" Scope="CompanyX" />
</Listeners>
</ext:CalendarPanel>
</Items>
</ext:Viewport>
<ext:EventEditWindow
ID="EventEditWindow1"
runat="server"
Hidden="true"
GroupStoreID="GroupStore1">
</ext:EventEditWindow>
</form>
</body>
</html>