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

Non-recurring task being displayed as recurrence

4 Answers 61 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 13 Apr 2009, 12:47 PM
Awesome software!  I'm playing around w/the trial software, just getting my feet wet.  Everything works great so far, expect for one thing.  All the tasks that I create show up w/the recurring task icon whether they have a recurrence assigned or not.  Likewise, when I click on any item the "Editing a recurring appointment" challenge box pops up.  If I select "Edit the series" the page errors out.  Obviously because there is really no recurrence assigned.  I looked in the db and the recurrence field is empty.

Any ideas?

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 13 Apr 2009, 02:40 PM

Thank you, Matt.

Can you open a support ticket and send us a simple demo of the problem? This is strange and we are not sure what could be causing it.


Regards,
Peter
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Matt
Top achievements
Rank 1
answered on 13 Apr 2009, 07:17 PM
I think I figured out what's going on.  The RecurrenceParentID field is being populated with a zero.  Is the code looking for a task with ParentID zero?  Null is not a valid entry into an int type field.  Is there a workaround for this?  Or am I doing something wrong?
0
Dimitar Milushev
Telerik team
answered on 14 Apr 2009, 11:16 AM
Hi Matt,

The usual approach is to make the int field in the Database nullable. If this is not viable for your scenario, you can handle the AppointmentDataBound event and check if the RecurrenceParentID is 0 and set it to 'null' if it is. This should fix the problem.

Sincerely yours,
Dimitar Milushev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Matt
Top achievements
Rank 1
answered on 14 Apr 2009, 12:49 PM
Thanks for the response.  I figured it out. I was confused because the field was set to null in MSSQL.  I realized that I needed to update my linq to sql file.  Once I fixed the value there the issue was taken care of.
Tags
Scheduler
Asked by
Matt
Top achievements
Rank 1
Answers by
Peter
Telerik team
Matt
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Share this question
or