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

How to Find Click Event Of Day, Week, Month Tab Of Scheduler Control

7 Answers 245 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 Apr 2010, 06:29 AM
Hello Sir,

I am using Scheduler control. i wnat to find Click Event Of Day, Week, Month Tab Of Scheduler Control.
How can i achive. Please help me.

Thanks
Chandan

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Apr 2010, 09:25 AM

Hi Chandan,

You could attach the NavigationCommand to RadScheduler, which occurs when the user clicks on a control that changes the selected day, view, or mode of the scheduler.

-Shinu.

0
Chandan Kumar
Top achievements
Rank 1
answered on 05 Apr 2010, 10:44 AM
Hello Sir,
In navigation Command which Value we should have to check. Means How Can I Know Month is clicked or week is clicked or day View is Clicked. which argument we have to check. Please Help Me.

Thanks
Chandan Kumar
0
Veselin Vasilev
Telerik team
answered on 05 Apr 2010, 11:04 AM
Hello Chandan Kumar,

You need to use the Command property of the event argument to determine what was clicked:

if (e.Command == SchedulerNavigationCommand.SwitchToMonthView)
{
   // you just switched to month view
}


Kind regards,
Veskoni
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
Shinu
Top achievements
Rank 2
answered on 05 Apr 2010, 11:09 AM

Hello Chandan

Check for e.Command in NavigationCommand in order to find which View you selected.

C#:

 
    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)  
    {  
        if (e.Command == SchedulerNavigationCommand.SwitchToDayView)  
        {  
            Label1.Text = "DayView";  
        }  
        else if (e.Command == SchedulerNavigationCommand.SwitchToMonthView)  
        {  
            Label1.Text = "MonthView";  
        }  
        else if (e.Command == SchedulerNavigationCommand.SwitchToTimelineView)  
        {  
            Label1.Text = "TimelineView";  
        }  
        else if (e.Command == SchedulerNavigationCommand.SwitchToWeekView)  
        {  
            Label1.Text = "WeekView";  
        }  
    } 

-Shinu.

0
Chandan Kumar
Top achievements
Rank 1
answered on 05 Apr 2010, 11:41 AM
Thank You Very Much Sir.
Sir One More Question, 

i am using Rad Scheduler Control. im want to show time view Display Time Slot Like 7:00 , 7:15, 7:30, 7:45, 8:00 In Scheduler Control.

how can i achive. Please help Me.


Thanks
Chandan Kumar
0
Hristiyan
Top achievements
Rank 1
answered on 28 Oct 2010, 11:23 AM
Hi,

sorry for bumping an old thread but it seemed like my question is mostly relevant here.

What I'm trying to do is basically use the navigation tabs/buttons to switch the number of slots displayed and their duration. So basically not changing the time view, keeping Time-line as selected so the appointments are still shown horizontally, but changing just the slots number and duration.

After catching the command in the event, I can update the properties NumberOfSlots, SlotDuration etc. but since I cancel the event so the scheduler doesn't change the view, the selected tab/button remains the "Time-line" one.

Is there a way to change the style of the tabs, so even if the view of the scheduler is not changed I'd set another button as selected? I suppose I better ask if there is a better way to do what I'm trying to do here? The reason I want to do it is because I want to use buttons in the scheduler and since custom header is not an option yet I have to do work arounds...

Thanks for the help in advance.
Hristiyan
0
Peter
Telerik team
answered on 03 Nov 2010, 02:49 PM
Hi Hristiyan,

There isn't really a better way to achieve this and unfortunately you cannot add custom tabs for different modes of Timeline view. What I recommend is you use separate controls on top of RadScheduler to pick the selected view and to apply the timeline view settings.


Regards,
Peter
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






Tags
Scheduler
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Chandan Kumar
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Hristiyan
Top achievements
Rank 1
Peter
Telerik team
Share this question
or