Calendar EventEditWindow (always the same record)

  1. #1

    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.


    <!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>
  2. #2
    I found that I need to include the property EventId

    Anyway thank you very much and happy new year

Similar Threads

  1. Help For EventEditWindow
    By Rupesh in forum 1.x Help
    Replies: 3
    Last Post: Mar 12, 2012, 8:44 AM
  2. Calendar eventeditwindow
    By Pritesh in forum 1.x Help
    Replies: 0
    Last Post: Mar 05, 2012, 11:11 AM
  3. EventEditWindow is not defined
    By threewonders in forum 1.x Help
    Replies: 2
    Last Post: Mar 05, 2012, 9:16 AM
  4. EventEditWindow
    By mkkalkan in forum 1.x Help
    Replies: 1
    Last Post: Oct 13, 2011, 8:38 PM
  5. Replies: 1
    Last Post: Nov 09, 2010, 9:35 AM

Posting Permissions