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

Custom GanttTask Null Date bug

4 Answers 48 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 27 Mar 2013, 04:02 PM
Hi,

I have a custom GanttTask class that allows null values for a start date, (this is the date that the actual work have started and not the date it was planned to be started).

I'm trying to validate that, if the user has entered a date, that date has to be less or equal to the end date, if not then show a warning to the user but let him continue, but also the user should be able to clear the content of the start date and that is an acceptable value, the problem is that when the TaskEdited event happens, the field that is bind to the Date Picker still has the old value, this only happens when clearing the value and not when the value has been updated, Is there any thing else that I need to do to make this work?

thanks in advance for your help

4 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 28 Mar 2013, 01:27 PM
Hello,

In the current version of RadGanttView we have an known issue concerning the TaskEdited event and we have logged it in our Public Issue Tracker System where you can track its status.

We apologize for any inconvenience that this maybe causing.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ron
Top achievements
Rank 1
answered on 28 Mar 2013, 04:43 PM
Hi Vladi,

Is there a time frame for this to be fixed?, Would it be ready for the next release?

thanks
0
Vladi
Telerik team
answered on 29 Mar 2013, 11:50 AM
Hello,

As this is a new issue it is not included in the planing for our next official release of RadControls.

We will do our best in order to have a permanent fix for this issue as soon as possible.

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nikola
Top achievements
Rank 1
answered on 08 Oct 2014, 06:24 AM
In .Net System.DateTime doesnt allow null, this is true.

But you could validate if the user entered a date by simple asking for:

if(enteredDateTime != DateTime.MinValue)
    do something;
Tags
GanttView
Asked by
Ron
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Ron
Top achievements
Rank 1
Nikola
Top achievements
Rank 1
Share this question
or