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

Editing/Deleting appointment with context menu

1 Answer 35 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 05 May 2008, 05:24 PM
Hi Guys

I've got a scheduler with data from the generic list example. I've added the context menu from the integration example and have the menu displaying with the right click.

The context menu adds new appointments but when I click edit or delete I get an error complaining about the input string being in the incorrect format.

I'm sure this is the problem line 

int

id = Convert.ToInt32(requestParams[2]);

Because it is trying to convert what looks like a GUID to an int. How can I change the code so that it will work? I assume I'll have to change this line:

doAjaxRequest(

"Appointment Edit " + selectedAppointment.get_id());

But I don't know what to change it too.

Thanks for your help
Jon

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 05 May 2008, 07:56 PM
I think I figured this out, been a bit stupid really. The AppointmentInfo class is using a GUID for it's ID, hence the problem.
Tags
Scheduler
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or