PDA

View Full Version : [CLOSED] ext:CalendarPanel: Error when resizing or moving the event slot.



supera
Apr 17, 2012, 12:32 PM
Hi!

When I'm resizing or moving a event slot in Calendar Panel, a error occurs:

Runtime Error in Microsoft JScript: Can not get property value 'update': the object is null or not defined.

4114

This error occurs in Ie, FireFox, Chrome...
The error occurs in this sample too (passed by Daniil).



<ext:CalendarModel CalendarId="3" Title="School" />
</Calendars>
</CalendarStore>
<Listeners>
<DayClick Fn="CompanyX.dayClick" Scope="CompanyX" />
<EventClick Fn="CompanyX.record.show" Scope="CompanyX" />
</Listeners>
</ext:CalendarPanel>
</Items>
</ext:Viewport>
<ext:EventWindow
ID="EventWindow1"
runat="server"
Hidden="true"
CalendarStoreID="CalendarStore1">
<Listeners>
<EditDetails Fn="CompanyX.record.edit" Scope="CompanyX" />
</Listeners>
</ext:EventWindow>
</form></body></html>

Daniil
Apr 17, 2012, 1:13 PM
Hi,

Please provide a full sample and exact steps to reproduce.

supera
Apr 17, 2012, 1:15 PM
The error occurs in this sample passed by you:

No steps... try resize or move events in CalendarPanel with the mouse.



<ext:CalendarModel CalendarId="3" Title="School" />
</Calendars>
</CalendarStore>
<Listeners>
<DayClick Fn="CompanyX.dayClick" Scope="CompanyX" />
<EventClick Fn="CompanyX.record.show" Scope="CompanyX" />
</Listeners>
</ext:CalendarPanel>
</Items>
</ext:Viewport>
<ext:EventWindow
ID="EventWindow1"
runat="server"
Hidden="true"
CalendarStoreID="CalendarStore1">
<Listeners>
<EditDetails Fn="CompanyX.record.edit" Scope="CompanyX" />
</Listeners>
</ext:EventWindow>
</form></body></html>

Daniil
Apr 17, 2012, 1:19 PM
Well, I create many examples per day and not sure what exactly example you mean :)

I've just expected a full example to copy/paste and run.

supera
Apr 17, 2012, 2:02 PM
Oops... sorry

I thought I had cut and paste all codes of sample file.

Sorry about this.



<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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 v2 Example</title>

<script type="text/javascript">

var CompanyX = {
getCalendar: function () {
return CompanyX.CalendarPanel1;
},
getWindow: function () {
return CompanyX.EventWindow1;
},
dayClick: function (cal, dt, allDay, el) {
this.record.show.call(this, cal, {
StartDate: dt,
IsAllDay: allDay
}, el);
},
record: {
show: function (cal, rec, el) {
CompanyX.getWindow().show(rec, el);
},
edit: function (win, rec) {
win.hide();
rec.commit();
CompanyX.getCalendar().showEditForm(rec);
}
}
};
</script></head><body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="CompanyX" />
<ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
<Items>
<ext:CalendarPanel ID="CalendarPanel1" runat="server" ActiveIndex="1">
<EventStore ID="EventStore1" runat="server">
<Events>
<ext:EventModel
Title="My event"
StartDate="2012/4/17 9:00"
EndDate="2012/4/17 10:00"
CalendarId="1" />
</Events>
</EventStore>
<CalendarStore ID="CalendarStore1" runat="server">
<Calendars>
<ext:CalendarModel CalendarId="1" Title="Importante" ColorId="1" />
<ext:CalendarModel CalendarId="2" Title="Comercial" ColorId="2"/>
<ext:CalendarModel CalendarId="3" Title="Pessoal" ColorId="3"/>
</Calendars>
</CalendarStore>
<Listeners>
<DayClick Fn="CompanyX.dayClick" Scope="CompanyX" />
<EventClick Fn="CompanyX.record.show" Scope="CompanyX" />
</Listeners>
</ext:CalendarPanel>
</Items>
</ext:Viewport>
<ext:EventWindow
ID="EventWindow1"
runat="server"
Hidden="true"
TitleTextAdd="Adicionar Novo."
TitleTextEdit="Editar evento"
CalendarStoreID="CalendarStore1">
<Listeners>
<EditDetails Fn="CompanyX.record.edit" Scope="CompanyX" />
</Listeners>
</ext:EventWindow>
</form></body></html>

Daniil
Apr 17, 2012, 4:26 PM
Thanks for the sample.

Though I can't reproduce the issue. I'm trying to move and resize an event, but no error occurs.

What browser do you test with?

supera
Apr 17, 2012, 4:35 PM
Hi Daniil!

I'm testing with IE 9. In Firefox and Chrome its works, now. In IE9, the error stills occurs.

supera
Apr 18, 2012, 12:05 PM
Hi Daniil...

I downloaded source code, compile and replace ext.net dlls...

This error still occurs....

supera
Apr 18, 2012, 2:01 PM
Hi Daniil

I found this problem... nothing with ext.net...

Sorry about this...

you can close this thread.

Daniil
Apr 18, 2012, 2:09 PM
Thanks for the update. I was just going to break down the brain on this issue :)