[CLOSED] Calendarpanel + objectgadatsource

  1. #1

    [CLOSED] Calendarpanel + objectgadatsource

    Last edited by Daniil; Aug 09, 2012 at 5:08 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set up
    NoMappings="true"
    for the EventStore.

    Example Page
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <asp:ObjectDataSource
            ID="ObjectDataSource1"
            runat="server"
            SelectMethod="GetAll"
            TypeName="Test" />
    
        <ext:Viewport runat="server" Layout="FitLayout">
            <Items>
                <ext:CalendarPanel runat="server">
                    <EventStore
                        runat="server"
                        DataSourceID="ObjectDataSource1"
                        NoMappings="true" />
                </ext:CalendarPanel>
            </Items>
        </ext:Viewport>
    </body>
    </html>
    Example Test Class
    using System;
    using Ext.Net;
    using System.Collections.Generic;
    
    public class Test
    {
        public static List<EventModel> GetAll()
        {
            return new List<EventModel>
            {
                new EventModel()
                {
                    EventId = 1,
                    Title = "My event",
                    StartDate = DateTime.Now,
                    EndDate = DateTime.Now.AddDays(1),
                    CalendarId = 1
                }
            };
        }
    }
  3. #3
    Great it works well but I have two other issues.

    The fist one is when I create a new Event, the "IsNew" property is not set to true.

    When I edit or add a new event, my calendar is not reloaded. I need to reload the whole page to see my changes. EventStore.DataBind() worked well in 1.x but in 2.0 it doesn't do what I want.

    I manipulate my events in serverside using directevents as you can see in the first topic..
  4. #4
    These issues looks to be not tightly related to the current topic.

    Please start new forum threads for each one providing more details (best - samples to reproduce).

Similar Threads

  1. [CLOSED] CalendarPanel filters
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 05, 2012, 1:32 PM
  2. [CLOSED] CalendarPanel Issues
    By cleve in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 05, 2012, 5:24 AM
  3. [CLOSED] CalendarPanel - First day of the week
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 11, 2012, 5:51 PM
  4. [CLOSED] [1.0] CalendarPanel Question
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 22, 2011, 3:43 PM
  5. [CLOSED] [1.0] CalendarPanel
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 15, 2011, 11:40 AM

Tags for this Thread

Posting Permissions