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

How Can i Block Scheduler Slot Of Some Time Interval

3 Answers 164 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chandan Kumar
Top achievements
Rank 1
Chandan Kumar asked on 03 May 2010, 10:57 AM
Hello Sir,

How Can i Block Scheduler Slot Of Some Time Interval

For Example :- 

My Scheduler Time Between 9:00AM To 8:00PM

And i want Block :- 10:00AM to 11:00AM   And  01:00PM to 03:00PM

How can i Achive It. Please Help Me.

Thanks
Chandan Kumar

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 May 2010, 12:58 PM
Hi Chandan,

I guess you want to prevent inserting appointment for particular time slot. If so one suggestion would be attaching the 'OnClientAppointmentInserting' event cancel the event based on condition.

JavaScript:
 
<script type="text/javascript">  
    function OnClientAppointmentInserting(sender, args) {  
        var dt = new Date();  
        dt = args.get_startTime();  
        // Now Check for condition 
        if (condition) {  
            args.set_cancel(true); // Cancel the event  
            alert("Cannot insert");  
        }  
    }  
</script>  


Regards,
Princy.
0
Veronica
Telerik team
answered on 03 May 2010, 01:31 PM
Hello Chandan Kumar,

Please take a look at this help topic. Here you may find information about setting special days or time slots which meet certain criteria.

Hope this helps.

Regards,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Chandan Kumar
Top achievements
Rank 1
answered on 03 May 2010, 01:37 PM
Thanks For Reply.

But i want to Complete block the slots. 
Nothing should happen when i click or double click ot right Click on blocked slot.

Means All thing blocked when i click on block Time slot.

then how can i block time schedule.

Tags
Scheduler
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Veronica
Telerik team
Chandan Kumar
Top achievements
Rank 1
Share this question
or