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

Updated values in customized template

2 Answers 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 08 Feb 2009, 05:31 PM
Hello,

I just started to implement the RadScheduler inside or project.
I have used the 'Customize the Advanced Form Template' help documentation, to make a edit form that has the custom attribute controls (dropdown lists, textboxes, checkboxes)
The appointment is updated from database, and all controls are updated with the data from the the database.
This works all good.

But when i change i.e. the end time, and use the update button, the appointment don't change (appointment.End).
The same with the attribute controls, if i change a value, i can't find a way to catch this changed value inside the update event.

I have searched all the documentation on this site, and the forums, but i have no clue how to manage the above problems.
I know i overlook something, but if someone can give me some hints about this,  i appreciate that.
(Been experimenting now for 2 days, to get this work)


2 Answers, 1 is accepted

Sort by
0
Marco
Top achievements
Rank 1
answered on 08 Feb 2009, 08:51 PM
Well after a brain flash i made it to catch the changed values inside the update event.
I overlooked the way the two way-binding worked and had to changed some code.
I had set the initialy binding for the edit template, to the time and date that was loaded from the database.
But the binding must be with  the Start and End properties of the scheduler.
This way i managed to catch the changed times within the ModifiedAppointment. (otherwise both appointments are the same)

I also didn't have a binding for the extra attributes in the custom template binding of the scheduler, so the attribute keys where visible in the appointment inside the update event, but didn't show up in the ModifiedAppointment. (no attributes)
After binding the extra attributes, i can catch all the changed data inside the update event.

One question remaining.
How can i update the appointment when the times are changed.
Now the appointment stays the same inside the scheduler.
I can do offcourse  a complete new databind, but basicly i only want to update the appointment that is changed.








0
Peter
Telerik team
answered on 11 Feb 2009, 10:17 AM
Hello Marco,

I am not sure how you implement this case and what exactly you need to achieve. Please, keep in mind that the customizing the advanced template example uses an approach which is not directly related to RadScheduler, but instead goes into general asp.net programming. There are numerous ways in which this example can be modified or extended through general coding and we do not have the resources to support all those cases.


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Marco
Top achievements
Rank 1
Answers by
Marco
Top achievements
Rank 1
Peter
Telerik team
Share this question
or