Nov 22, 2010, 1:10 PM
[CLOSED] [1.0] Custom EventEditWindow
Hi,
I have a problem in the customization of EventEditWindow. As box appears, I get a javascript error. Something wrong in configuration?
Configuration markup:
I have a problem in the customization of EventEditWindow. As box appears, I get a javascript error. Something wrong in configuration?
Configuration markup:
<ext:EventEditWindow ID="EventEditWindow1" runat="server" Hidden="true" GroupStoreID="GroupStore1"
Namespace="MyNameSpace" RegisterAllResources="True">
<Items>
<ext:FormPanel ID="fpEdit" runat="server">
<Content>
<ext:TextField ID="title" runat="server" FieldLabel="Mytitle" DataIndex="Title" />
<ext:DateField ID="StartDate" runat="server" DataIndex="StartDate" />
<ext:DateField ID="EndDate" runat="server" DataIndex="EndDate" />
<ext:Checkbox ID="allday" runat="server" DataIndex="IsAllDay" />
<ext:ComboBox ID="calendar" runat="server" FieldLabel="categoria" DataIndex="CalendarId">
<Items>
<ext:ListItem Text="Home" Value="1" />
<ext:ListItem Text="Work" Value="2" />
<ext:ListItem Text="School" Value="3" />
</Items>
</ext:ComboBox>
<ext:TextField runat="server" FieldLabel="MyField" />
</Content>
</ext:FormPanel>
</Items>
<Listeners>
<EventAdd Fn="MyNameSpace.record.add" Scope="MyNameSpace" />
<EventUpdate Fn="MyNameSpace.record.update" Scope="MyNameSpace" />
<EditDetails Fn="MyNameSpace.record.edit" Scope="MyNameSpace" />
<EventDelete Fn="MyNameSpace.record.remove" Scope="MyNameSpace" />
</Listeners>
</ext:EventEditWindow>
This is the javascript error:Ext.getCmp("date-range") is undefined
Ext.ns("Ext.calendar");(function(){Ext...darpanel",Ext.calendar.CalendarPanel);
Last edited by Daniil; Nov 25, 2010 at 7:10 AM.
Reason: Please use [CODE] tags, [CLOSED]