Hi,
I am trying to pass (DayRenderEventArgs) e to a newly created EventHandler. After searching on Google I found out that I could use "delegate" (?) to accomplish this, I couldn't find a proper example though...
Please see the next code:
I am trying to pass (DayRenderEventArgs) e to a newly created EventHandler. After searching on Google I found out that I could use "delegate" (?) to accomplish this, I couldn't find a proper example though...
Please see the next code:
protected
void
trcCalendarID_OnDayRender(
object
sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
foreach
(Control control
in
trcCalendarID.Controls)
{
Button btnPlannen = (Button)control.FindControl(
"btnPlannenID"
);
if
(btnPlannen !=
null
)
{
//btnPlannen.Click += new EventHandler(btnPlannen_Click); //Pass 'e' as argument/parameter here
}
}
}