How to dispaly the Data using calendarpanel

  1. #1

    How to dispaly the Data using calendarpanel

    <ext:CalendarPanel ID="CalendarPanel1" runat="server" Region="Center" ActiveIndex="2" Border="false">
    <GroupStore ID="GroupStore1" runat="server">
    <Groups>
    <ext:Group CalendarId="1" Title="Office Visit" />
    <ext:Group CalendarId="2" Title="General Check-Up" />
    <ext:Group CalendarId="3" Title="Consultation" />
    <ext:Group CalendarId="4" Title="Routine Visit" />
    </Groups>
    </GroupStore>
    <MonthView ID="MonthView1" runat="server" ShowHeader="true" ShowWeekLinks="true" ShowWeekNumbers="true" />
    <Listeners>
    <ViewChange Fn="CompanyX.viewChange" Scope="CompanyX" />
    <EventClick Fn="CompanyX.record.show" Scope="CompanyX" />
    <DayClick Fn="CompanyX.dayClick" Scope="CompanyX" />
    <RangeSelect Fn="CompanyX.rangeSelect" Scope="CompanyX" />
    <EventMove Fn="CompanyX.record.move" Scope="CompanyX" />
    <EventResize Fn="CompanyX.record.resize" Scope="CompanyX" />
    </Listeners>
    <EventStore ID="EventStore1" runat="server">
    </EventStore>
    </ext:CalendarPanel>

    protected void Page_Load(object sender, EventArgs e)
    {
    BindData();
    }


    protected void BindData()
    {
    ARServiceClient arser = new ARServiceClient();
    try
    {
    EventStore eventStore = (EventStore)this.CalendarPanel1.EventStore;
    ARService.CalendarSchedule[] calarr = arser.SelectAllCalendarSchedule();
    if (calarr != null)
    {
    if (calarr.Count() > 0)
    {

    foreach (ARService.CalendarSchedule showcal in calarr)
    {
    Event myEvent = new Event();
    myEvent.Title = showcal.Title;
    myEvent.StartDate = showcal.StartDate;
    myEvent.EndDate = showcal.Enddate;
    myEvent.CalendarId = showcal.OccuranceID;
    eventStore.Events.Add(myEvent);
    }
    eventStore.DataBind();
    }
    }
    }
    catch (Exception ex)
    {
    WebPageException.HandleException(ex, "CalendarSchedule ShowallData()");

    }
    finally
    {
    if (arser.State == System.ServiceModel.CommunicationState.Opened)
    {
    arser.Close();
    }
    }
    }


    All the data is binding properly using of eventstore depending on start date,End date,time duration.But how to get the Calendar data for display purpose on each Control(title,startdate,enddate).

    pls help me as soon as possible......
  2. #2
    pls help me....

Similar Threads

  1. 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
  2. [CLOSED] CalendarPanel Remote Data
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: May 14, 2012, 5:03 PM
  3. [CLOSED] How to dispaly N checkbox component within gridpanel ?
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 15, 2012, 11:27 AM
  4. Replies: 5
    Last Post: May 17, 2011, 9:10 AM
  5. Controls Dont Dispaly Once Uploaded To Server
    By b.aytes in forum 1.x Help
    Replies: 8
    Last Post: Jul 29, 2009, 10:04 AM

Posting Permissions