search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How do i use update panel for DayView

Asked by Anonymous
11 years ago.

Hi I'm trying to use daypilot lite, to dispaly events on the calender and if the selected date changes..it should bind the data for that date..But it is not working..

Any help appreciated

<div style="border:1px solid red; padding: 10px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<asp:Calendar ID="Calendar1" runat="server" CssClass="calendar" OnSelectionChanged="Calendar1_SelectionChanged" DayNameFormat="FirstTwoLetters">
<TodayDayStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px"></TodayDayStyle>
<SelectedDayStyle BackColor="#FBE694" ForeColor="Black" CssClass="selected"></SelectedDayStyle>
<TitleStyle BackColor="White"></TitleStyle>
<OtherMonthDayStyle ForeColor="#ACA899"></OtherMonthDayStyle>
</asp:Calendar>

<br />
<daypilot:daypilotcalendar
id="DayPilotCalendar1"
runat="server"
dataendfield="end"
datastartfield="start"
datatextfield="name"
datavaluefield="id"
DurationBarColor = "AliceBlue"
EventBorderColor="LightPink"
ShowNonBusiness="true"
nonbusinesshours="Show"
HeightSpec="Full">
</daypilot:daypilotcalendar>
</ContentTemplate>
</asp:UpdatePanel>
</div>

protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
DateTime dt = DateTime.Parse(Calendar1.SelectedDate.ToShortDateString());
DayPilotCalendar1.DataSource = BindGrid(dt);
}

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.