[CLOSED] CalendarPanel build object data

  1. #1

    [CLOSED] CalendarPanel build object data

    Last edited by Daniil; Oct 01, 2013 at 4:37 AM. Reason: [CLOSED]
  2. #2
    Hi @osef,

    Here is an example.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <script>
            var add = function () {
                App.CalendarPanel1.eventStore.add({
                    Title: "New event",
                    EventId: 2000,
                    StartDate: new Date(),
                    EndDate: Ext.Date.add(new Date(), Ext.Date.DAY, 1),
                    CalendarId: 1
                });
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Button runat="server" Text="Add" Handler="add" />
    
            <ext:CalendarPanel ID="CalendarPanel1" runat="server" Width="500" Height="500">
                <EventStore runat="server">
                    <Events>
                        <ext:EventModel 
                            Title="My event" 
                            StartDate="2013/9/15" 
                            EndDate="2013/9/16" 
                            CalendarId="1" />
                    </Events>
                </EventStore>
            </ext:CalendarPanel>
        </form>
    </body>
    </html>
  3. #3
    Hi Daniil, I don't see the event preloader to dayview, but I see with monthview and weekview.

    Click image for larger version. 

Name:	AddRecordDay.png 
Views:	13 
Size:	8.1 KB 
ID:	6946Click image for larger version. 

Name:	AddRecordMonth.png 
Views:	17 
Size:	17.5 KB 
ID:	6947

                                <EventStore
                                    ID="esAgenda"
                                    runat="server">
                                    <Events>
                                        <ext:EventModel
                                            Title="My event"
                                            StartDate="2013/9/25"
                                            EndDate="2013/9/26"
                                            CalendarId="1"/>
                                    </Events>
                                </EventStore>
  4. #4
    Reproduced. Looks a bug. Seems it is only reproducible with 2 days long events. It seems OK with? for example, 3 days long event.
    <ext:EventModel
        Title="My event"
        StartDate="2013/9/24"
        EndDate="2013/9/26"
        CalendarId="1" />
    I will investigate.
  5. #5
    I can suggest to try this setting.
    <DayView AllDayOnly="false" />
  6. #6
    Quote Originally Posted by Daniil View Post
    I can suggest to try this setting.
    <DayView AllDayOnly="false" />
    Thank you Daniil.

Similar Threads

  1. [CLOSED] Convert Data from Store to object data list
    By Zenalyse in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 30, 2013, 6:13 AM
  2. [CLOSED] Ext.CalendarPanel: Ext.calendar.data.MemoryCalendarStore
    By supera in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 27, 2012, 12:03 PM
  3. How to reload CalendarPanel Data of Code-Behind?
    By easypower in forum 1.x Help
    Replies: 0
    Last Post: Jun 11, 2012, 3:37 AM
  4. [CLOSED] CalendarPanel Remote Data
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: May 14, 2012, 5:03 PM
  5. How to dispaly the Data using calendarpanel
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Jan 11, 2011, 1:16 PM

Tags for this Thread

Posting Permissions