Home Unanswered Active Tags New Question

Show event text in label on click.

Hi.

is it possible to show/get the dataTextField on the event you clicked. I use the postBack method, and i run the code:

protected void DayPilotCalendar2_EventClick(object sender, DayPilot.Web.Ui.EventClickEventArgs e)
{
Label6.Text = "Selected event: " + e.Value; // result: Selected event: 9
}

And all i get is the event number. I want the event name (the text inside the event).

thanks

Martin

Asked by Martin 3 years ago.
Replies

You should use e.Text instead of e.Value.

Comment posted by Dan Letecky 3 years ago.

Thank you :o)

Comment posted by Martin 3 years ago.

Hi,

In my handler for the event click, I don't get the option to use the e.Text property. All I see is e.Value. If I use e.toString, I get "DayPilot.Web.Ui.EventClickEventArgs".

Should I be setting something on the DPC control to permit it to pass the event's description text?

Thanks

Comment posted by Alec 3 years ago.

Iam unable to assign the e.value to the asp.net label control which is outside the calendar... Can we do it..?

Comment posted by Satish 1 year ago.
New Reply
This reply is
Your name (optional):

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