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

[Solved] Create appointement with no duration

5 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
guillaume.lebel asked on 01 Oct 2009, 05:50 PM
Hi,

We want to create appointement that have no time duration.

We tried to create a few with no success cause they're not showing in the scheduler. We had to set an interval of 1 min so the can show in the scheduler. But we don't want to validate the duration of each appointement we create.

Is there a way to create appointement  without using the time property but only the date where they will appear in the scheduler??

Thx alot!

Guillaume

PS: Sorry just noticed i've post on the wrong forum.

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 02 Oct 2009, 01:38 PM
Hi,

We'll remove this restriction in future versions as appointments with zero duration are a valid use case. Meanwhile you can use the following workaround to disable the duration validator:

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
    CustomValidator durationValidator = e.Container.FindControl("DurationValidator") as CustomValidator;
    if (durationValidator != null)
    {
        durationValidator.Enabled = false;
    }
}

I hope this helps.

Regards,
Tsvetomir Tsonev
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.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 08 Oct 2009, 07:28 PM
Thx for your answer,

  It works very well except when i create appointement with both at 00:00 time. Else the appointement are showing correctly in my scheduler.

Thx and have a nice day!

Guillaume
0
Peter
Telerik team
answered on 09 Oct 2009, 03:49 PM
Hello Guillaume,

I am not sure how to replicate this problem. Typing "00:00" in the advanced form time pickers will automatically cause them to convert the value to "12:00 AM". In this case there is no problem. Can you provide the exact steps necessary to observe the problem?


All the best,
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.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 09 Oct 2009, 04:21 PM
Hi,

Thx for your answer. I forgot to mention that we're not using the appointement creator include in the scheduler to create the events.
We have a page that have a date picker and a time picker and we take the value from to create our activity. Presently our time picker is set to take 24hours. So when we save the activity in our database it will save with the time we've set earlier (eg: 00:00).

But, the scheduler is in an other page where we load all the previous activity's data created and bind them to the scheduler.

Hope this help,
Thx for your time,

Guillaume
0
Peter
Telerik team
answered on 12 Oct 2009, 08:24 AM
Hello Guillaume,

Even with this qualification, we are still cannot replicate the problem. Can you open a support ticket and send us a simple working demo which we can test locally?


Cheers,
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
Grid
Asked by
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Answers by
T. Tsonev
Telerik team
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Peter
Telerik team
Share this question
or