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

Calendar: Integrated Message Bar

Asked by kodoth
12 years ago.

Hi Team ,
I am working with Calendar control,i want to know is there any way to set the message bar display time manually .
currently when the page get loaded first time the message bar is diaplayed only for 5 seconds and when a call back is happening from the calendar control ,the message is displayed for 20 seconds ,is there any way to make this equal say 20 seconds ... or manually set the time

Answer posted by Dan Letecky [DayPilot]
12 years ago.

At this moment you have to switch to manual message displaying using .message() - http://api.daypilot.org/daypilot-calendar-message/, AfterRenderJavaScript, and Update(object):

.aspx
<DayPilot:DayPilotCalendar
...
AfterRenderJavaScript="afterRender(data, isCallBack)"
ClientObjectName="dpc"
/>
function afterRender(data, isCallBack) {
  if (data.message) {
    dpc.message(data.message, 20000, "#fff", "#dc143c");;
  }
}
.aspx.cs
Hashtable data = new Hashtable();
data["message"] = "Welcome!";
DayPilotCalendar1.Update(data);

A convenient message bar customization is planned for DayPilot Pro for ASP.NET WebForms 7.0:
http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-7-0.html

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