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

Show event text in label on click.

Asked by Martin
15 years ago.

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

Comment posted by Dan Letecky
15 years ago.

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

Comment posted by Martin
15 years ago.

Thank you :o)

Comment posted by Alec
15 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 Satish
13 years ago.

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

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