Disabling/Hiding Navigation

8 posts, 0 answers
  1. jeremy
    jeremy avatar
    16 posts
    Member since:
    Oct 2007

    Posted 11 Oct 2007 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Oct 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Oct 2007 Link to this post

    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
  5. jeremy
    jeremy avatar
    16 posts
    Member since:
    Oct 2007

    Posted 12 Oct 2007 Link to this post

    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
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Oct 2007 Link to this post

    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
  7. jeremy
    jeremy avatar
    16 posts
    Member since:
    Oct 2007

    Posted 12 Oct 2007 Link to this post

    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
  8. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 08 Feb Link to this post

    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
  9. SJ87
    SJ87 avatar
    3 posts
    Member since:
    Nov 2016

    Posted 07 Nov in reply to Magdalena Link to this post

    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

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017