I'm evaluating the schedule control to see if we can make it do what we need, and have hit a bit of a stumper. I've just followed the instructions for replacing the edit form. Everything works as expected, except that when my custom edit form is called, the AppointmentID querystring parameter is "undefined." I need to be able to specify the AppointmentID for each appointment that is drawn on the calendar.
I've tried setting the scheduler's DataKeyField property, thinking that sounded like the most likely candidate, but that didn't work. I also attempted to set the appointment's ID property in the AppointmentDataBound event, with no success. I feel certain that there's a simple property I'm missing here...
My data source is a generic list of custom objects. I want to be able to set each appointment's ID to the ID property of those objects. Any ideas what I'm doing wrong here?
Here's the JavaScript that launches my edit window:
<script>
<!--
function AppointmentEditing(sender, eventArgs) {
var apt = eventArgs.get_appointment();
window.radopen("EditForm.aspx?Mode=Edit&AppointmentId=" + apt.ID, "AdvancedForm");
eventArgs.set_cancel(true);
}
</script>
I've tried setting the scheduler's DataKeyField property, thinking that sounded like the most likely candidate, but that didn't work. I also attempted to set the appointment's ID property in the AppointmentDataBound event, with no success. I feel certain that there's a simple property I'm missing here...
My data source is a generic list of custom objects. I want to be able to set each appointment's ID to the ID property of those objects. Any ideas what I'm doing wrong here?
Here's the JavaScript that launches my edit window:
<script>
<!--
function AppointmentEditing(sender, eventArgs) {
var apt = eventArgs.get_appointment();
window.radopen("EditForm.aspx?Mode=Edit&AppointmentId=" + apt.ID, "AdvancedForm");
eventArgs.set_cancel(true);
}
</script>