Hello,
I have a general question on the demo found at http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx
I was able to duplicate this in my project, and it works perfectly. I do not like simply cutting and pasting unless I fully understand the detail. I am currious why the Scheduler appointment created and databoud events are assigned the way they are in the example. Instead of declaring them in tag attributes in the ascx file, they are assigned values in the code behind in the page load. In addition, using the += and without checking for postback appears to me as though we are adding multiple duplicate event handlers. I do not pertend to be an expert on this, in fact, it is why I ask the question as to gain a better understanding. The following shows the page load from this exampe.
private void Page_Load(object sender, EventArgs e)
{
RadScheduler1.AppointmentCreated += RadScheduler1_AppointmentCreated;
RadScheduler1.DataBound += RadScheduler1_DataBound;
}
I have a general question on the demo found at http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx
I was able to duplicate this in my project, and it works perfectly. I do not like simply cutting and pasting unless I fully understand the detail. I am currious why the Scheduler appointment created and databoud events are assigned the way they are in the example. Instead of declaring them in tag attributes in the ascx file, they are assigned values in the code behind in the page load. In addition, using the += and without checking for postback appears to me as though we are adding multiple duplicate event handlers. I do not pertend to be an expert on this, in fact, it is why I ask the question as to gain a better understanding. The following shows the page load from this exampe.
private void Page_Load(object sender, EventArgs e)
{
RadScheduler1.AppointmentCreated += RadScheduler1_AppointmentCreated;
RadScheduler1.DataBound += RadScheduler1_DataBound;
}