Home Unanswered Active Tags New Question

paint event

Hi

1.is there a way to paint all the event in colornot just the DurationBarColor?

2.how to mark a selected event in the calendar ?

Thanks

roiy

Asked by Roiy 4 years ago.
Replies
1. You can use EventBackColor property to change the background color of all events. If you want to modify the color for individual events, you should use BeforeEventRender method and modify e.BackgroundColor.

2. You need to enable selecting by setting EventClickHandling="Select". This will enable event selecting (clicking will select an event). The selected event will be marked with a top and bottom border, 5px high. The color of these borders is determined by EventSelectColor property (blue by default).
Comment posted by Dan Letecky 4 years ago.

1.OK

2 I need to leave the EventClickHandlingEnum = PostBack becouse i need to use e.Value.

what is the way to leave EventClickHandlingEnum = PostBack and mark a selected event?

Thanks

Comment posted by Roiy 4 years ago.
If you need a server-side event after event selecting you should use this:

EventClickHandling="Select" EventSelectHandling="PostBack"

In this case, EventSelect event will be fired on the server side.
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java