calender Control is not working.

  1. #1

    calender Control is not working.

    Hi to all,
    I want to use the calender control so i just add the CalendarPanel to the page but i cant see any thing. Plz help me out. The code which i write in aspx is as follows.
    Thanks in advance
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Clander.aspx.cs" Inherits="Clander" %>
    
    <%@ 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 runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
        <div>
            <ext:CalendarPanel ID="CalendarPanel1" runat="server"
                                Region="Center"
                                Height="100">
                                <Content>
                                asdfasdfas
                                </Content>
            </ext:CalendarPanel>
        </div>
        </form>
    </body>
    </html>
  2. #2
    Please see the following example for a demonstration on how to configure the <ext:Calendar> component.

    https://examples1.ext.net/#/Calendar/Overview/Basic/
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Please see the following example for a demonstration on how to configure the <ext:Calendar> component.

    https://examples1.ext.net/#/Calendar/Overview/Basic/
    I downloaded the example and try to run it but it also not working.
  4. #4
    hi geoffrey.mcgill The calender is not shows when i added the

    <ext:CalendarPanel ID="CalendarPanel1" runat="server"
                                Region="Center"
                                ActiveIndex="2"
                                Border="false" Height="100">
                                <Content>
                               
                                </Content>
            </ext:CalendarPanel>
    Is any other thing is required for this.
  5. #5
    Hi,

    Here is a simple example.

    Example
    <%@ 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 runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:Viewport runat="server" Layout="fit">
            <Items>
                <ext:CalendarPanel runat="server">
                    <EventStore runat="server">
                        <Events>
                            <ext:Event Title="My event" StartDate="2010/11/13" EndDate="2010/11/13" IsAllDay="true" CalendarId="1"/>
                        </Events>
                    </EventStore>
                </ext:CalendarPanel>
            </Items>
        </ext:Viewport>
        </form>
    </body>
    </html>
  6. #6
    Thanks The calender is shows now. But when i write the Day click and i want the get the particular date and time in which the click.
    Please help me out for this.
    The code is
    <ext:CalendarPanel ID="CalendarPanel1" runat="server"
                                Region="Center" ShowDayView="false" ShowMonthView="false"
                                ActiveIndex="2"
                                Border="false" Height="400">
                        <EventStore runat="server">
                            <Events>
                                <ext:Event Title="My event" StartDate="2010/11/13" EndDate="2010/11/13" IsAllDay="false" CalendarId="1"/>
                            </Events>
                        </EventStore> 
                        <DirectEvents>
                            <DayClick   OnEvent="EventClick"  />
                        </DirectEvents>
            </ext:CalendarPanel>
  7. #7

Similar Threads

  1. Replies: 0
    Last Post: May 05, 2012, 7:25 AM
  2. Calender Control Problem with Data
    By gayancc in forum 1.x Help
    Replies: 3
    Last Post: Mar 05, 2012, 4:05 AM
  3. Error in Calender Control
    By archana in forum 1.x Help
    Replies: 6
    Last Post: Jan 05, 2012, 11:04 AM
  4. Calender control for another approch
    By gayancc in forum 1.x Help
    Replies: 6
    Last Post: Feb 08, 2011, 10:15 AM
  5. Replies: 3
    Last Post: Dec 16, 2010, 11:11 AM

Posting Permissions