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

Protect time cell from selection

1 Answer 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Aug 2008, 07:39 PM

Hi,

        I'm currently designing a web application which allows to create time sheet online.

So I have some prerequisite to select your scheduler control control:
  1. Allow custom selection to create activity (like outlook)
  2. Protect some cell ranges from activity creation
  3. Set a custom color for several time range
  4. Pop different context menu depending on which time range I clicked.
PS: I'm disposed to adapt your source code to my needs, but I want to know if  it's feasible with a minimum of modification within the control source.

Best regards,
Michael

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Aug 2008, 12:35 PM
Hello Michael,

Thank you for using RadScheduler.

For questions 2 and 3, please see this KB article.

For the last question, please refer to the Context Menu example. In the OnClientTimeSlotContextMenu event handler you can use the methods of the second parameter (eventArgs) to create your conditions for each menu. Then you can call the show() method for each menu based on your condidtions. For example:

function timeSlotContextMenu(sender, eventArgs)  
                {  
                      
                    var menuA = $find("<%= SchedulerTimeSlotContextMenuA.ClientID %>");  
                    var menuB = $find("<%= SchedulerTimeSlotContextMenuB.ClientID %>");  
                    if(ConditionA)  
                    {  
                        menuA.show(eventArgs.get_domEvent());  
                    }  
                    else if (ConditionB)  
                    {  
                         menuB.show(eventArgs.get_domEvent());  
                    }  
                                          
                    isAllDayTimeSlot = eventArgs.get_isAllDay();  
                    contextMenuSlot = eventArgs.get_targetSlot();  
                } 

As for the first question, I am not sure I understand what exactly you want to achieve. Coud you please elaborate?


All the best,
Peter
the Telerik team

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