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

  1. #1

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

    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.

    Click image for larger version. 

Name:	error when recising or move event slots.jpg 
Views:	107 
Size:	86.7 KB 
ID:	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>
    Attached Thumbnails Click image for larger version. 

Name:	error when recising or move event slots.jpg 
Views:	97 
Size:	104.4 KB 
ID:	4113  
    Last edited by Daniil; Apr 18, 2012 at 2:15 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please provide a full sample and exact steps to reproduce.
  3. #3
    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>
  4. #4
    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.
  5. #5
    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>
  6. #6
    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?
  7. #7
    Hi Daniil!

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

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

    This error still occurs....
  9. #9
    Hi Daniil

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

    Sorry about this...

    you can close this thread.
  10. #10
    Thanks for the update. I was just going to break down the brain on this issue :)

Similar Threads

  1. [CLOSED] CalendarPanel: customizing the event slot.
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 04, 2013, 4:40 AM
  2. [CLOSED] CalendarPanel - Add a new slot bellow each regular slot
    By supera in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 11, 2012, 1:02 PM
  3. [CLOSED] CalendarPanel: How I lock moving and resize of Event slot?
    By supera in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 24, 2012, 11:20 AM
  4. [CLOSED] CalendarPanel: How I insert a icon in Event slot?
    By supera in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 17, 2012, 8:19 PM
  5. Replies: 5
    Last Post: Mar 28, 2012, 7:38 PM

Posting Permissions