This is a migrated thread and some comments may be shown as answers.

[Solved] How does an appointment's ID get set?

1 Answer 101 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rebecca Campbell
Top achievements
Rank 1
Rebecca Campbell asked on 27 Aug 2009, 12:08 AM
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>


1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Aug 2009, 02:57 PM
Hello Rebecca,

This topic is outdated and we have removed from the treeview of the online help. It is obsoleted by the new Modal feature of the advanced form introduced with Q2 2009. -
<AdvancedForm Modal="True" /> and the Advanced form templates of RadScheduler. I suggest you use this demo instead: http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx


Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Rebecca Campbell
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or