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

Disabling/Hiding Navigation

8 Answers 410 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
jeremy
Top achievements
Rank 1
jeremy asked on 11 Oct 2007, 10:22 PM
Hi folks,

Is there an ability in the scheduler to disable and/or hide the next, previous, and today icons/commands in the navigation header?  My schedule is operating on a day view.

Thanks,
Jeremy

8 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Oct 2007, 09:08 AM
Hi Jeremy,

Thank you for your interest in RadScheduler.

Including the following style will remove the navigation buttons and the "today" link:

<head runat="server">  
    <style type="text/css">  
    .rsHeader p  
    {  
        display: none ;  
    }      
    </style> 
</head> 

Feel free to contact us if you have further questions.


All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Peter
Telerik team
answered on 12 Oct 2007, 09:50 AM
Hi Jeremy,

Please, ignore my previous post. There is a better way to hide the navigation pane - I just discovered it:

<telerik:RadScheduler ID="RadScheduler1" ShowNavigationPane="false" ...>



Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jeremy
Top achievements
Rank 1
answered on 12 Oct 2007, 02:17 PM
Peter,

My apologies.  I was not clear in the question I originally asked.  I am aware of hiding the whole header but was wondering if individual icons can be hidden.  At the moment I am using the  NavigationCommand event to check that when a user clicks next/previous day, I verify that date will be in the bounds of my schedules start and end dates.  If it reaches either boundary, I want to disable or hide that navigation button.

It would be more elegant to do this as opposed to displaying an error message when either boundary is reached.

Thanks,
Jeremy
0
Peter
Telerik team
answered on 12 Oct 2007, 02:55 PM
Hello Jeremy,

I understand what you want to achieve  and it makes perfect sense indeed. Unfortunately, I don't see a way to do it without tweaking the RadScheduler's skin. The problem is that the left and right arrow are actually one image. You can hide or show the entire navigation pane as I suggested already via the ShowNavigationPane property in the NavigationCommand event handler:

protected void RadScheduler1_NavigationCommand(object sender, Telerik.Web.UI.SchedulerNavigationCommandEventArgs e)  
    {  
        if (true)  
        {  
            this.RadScheduler1.ShowNavigationPane = false;  
        }  
    } 

But I am not sure if this is going to be useful in this scenario.

I will forward the case to our UX team for consideration and maybe we will expose two separate images for navigation.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
jeremy
Top achievements
Rank 1
answered on 12 Oct 2007, 03:02 PM
Thanks for the prompt response on this issue.  I'll see if I can do something different.  I'm thinking take the image of the two arrows, split it into 2 in adobe photoshop.  Then going into the css and defining 2 elements. 

I'm thinking then I can expose the inline css in the code behind and hide them individually.

Thanks,
Jeremy
0
Magdalena
Telerik team
answered on 08 Feb 2016, 11:37 AM
Hello Jeremy,

For the purpose, we recommend to use lightweight render mode, which is much more easier for customizing. After that you can hide the button by the following:
.RadScheduler .rsButton.rsNextDay {
    display: none;
}

Do not hesitate to contact us if you have other questions.


Regards,
Magdalena
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
SJ87
Top achievements
Rank 1
answered on 07 Nov 2016, 08:30 PM

Hi, I'm new to Telerik Controls and UWP. I'm using Calendar control in a MainView.xaml if click on a particular day on month view it should navigate to another view called mySecondView.xaml. How can I handle that tap event and please tell me how to display only monthday view on my screen, I don't want to navigate to year view, decade view or week view.

 

Thank you.

SJ

0
Michael Bakker
Top achievements
Rank 2
answered on 29 Oct 2020, 01:59 PM

To hide all buttons in the toolbar (like the view and navigation buttons) use:

.rsToolbar .rsButton {
    display: none !important;
}
Tags
Scheduler
Asked by
jeremy
Top achievements
Rank 1
Answers by
Peter
Telerik team
jeremy
Top achievements
Rank 1
Magdalena
Telerik team
SJ87
Top achievements
Rank 1
Michael Bakker
Top achievements
Rank 2
Share this question
or