how to disable day view button in radschedule control

13 posts, 0 answers
  1. ukung
    ukung avatar
    10 posts
    Member since:
    Sep 2007

    Posted 05 Sep 2007 Link to this post

    If I want to disable day view button(or the other button) in radscheduler control, what should i do. If it possible to do?
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 07 Sep 2007 Link to this post

    Hello Ukung,

    The buttons are not individually controllable. You can hide the view change tabs by setting ShowViewChangeTabs to false.

    The other option is to handle the NavigationCommand event and cancel it when switching to day view like this:

    protected void RadScheduler1_NavigationCommand( object sender, SchedulerNavigationCommandEventArgs e )
    {
        if( e.Command == SchedulerNavigationCommand.SwitchToDayView )
        {
            e.Cancel = true;
        }
    }

    Greetings,
    Tsvetomir Tsonev
    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. ukung
    ukung avatar
    10 posts
    Member since:
    Sep 2007

    Posted 07 Sep 2007 Link to this post

    ok, thanks you for the reply

    mybe in next realese the viewchange tab can be costumizeable
  5. nick
    nick avatar
    11 posts
    Member since:
    Apr 2007

    Posted 19 Sep 2007 Link to this post

    One thing you can do is hide the Day button using CSS:

    .rsHeaderDay { display: none !important; }

    Hope this helps.
  6. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 21 Sep 2007 Link to this post

    Hi Ukung,

    Nick is right, you will be able to hide it using CSS. However we do not render exactly this class, the correct selector is:
    .RadScheduler_Default .rsHeader .rsFirst { visibility: hidden; } 

    We will probably introduce some additional classes to make writing such selectors easier.

    Greetings,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Corey Alguire
    Corey Alguire avatar
    43 posts
    Member since:
    Sep 2004

    Posted 14 May 2008 Link to this post

    I have been checking through the forums and documentation for changes since this thread started, but I didn't see anything. It seems even as of the Q1 2008 release, the CSS hack is the only way to disable navigation to a view without removing the entire navigation strip. For the future, I would really like to see the ability to enable/disable individual views. With the latest release, if I want to enable the navigation tabs, I am stuck with the added Timeline View, which for my purposes is not an option. As it stands, I either have to remove the Navigation strip completely and create my own view navigation, or rely on the CSS hack.

    In general, I love your controls and have been using them for years. I also like the direction Scheduler is taking. However, I would say it still definitely has some weak spots. For the future, I would really like to see properties to enable/disable views (among other things).
  8. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 14 May 2008 Link to this post

    Hi Corey,

    Thank you for the feedback. We have introduced such properties in the Q1 release - each view can be disabled using the dedicated nested tag for that view. For example:

    <telerik:RadScheduler ID="RadScheduler1" runat="server"
        <DayView UserSelectable="false" /> 
    </telerik:RadScheduler> 

    We are constantly working on improving RadScheduler and our documentation might be a bit lagging at times. Please, excuse us for the inconvenience.

    Sincerely yours,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Corey Alguire
    Corey Alguire avatar
    43 posts
    Member since:
    Sep 2004

    Posted 15 May 2008 Link to this post

    Ah ha! Thank you for pointing this out to me. Removed the CSS hack and disabled the Timeline view as suggested, and it works like a charm.
  10. Kevin
    Kevin avatar
    17 posts
    Member since:
    Jul 2012

    Posted 12 Sep 2012 Link to this post

    Thanks for the tip.  I've been looking for a way to disable those selectables for two days now and started to feel the frustrations.  I also like the the CSS hack too.  Thank you everyone who reply to the threads.  Genius !!!
  11. Kevin
    Kevin avatar
    17 posts
    Member since:
    Jul 2012

    Posted 12 Sep 2012 Link to this post

    Thanks Nick.  Stroke of Genius ...
  12. Bebins
    Bebins avatar
    1 posts
    Member since:
    Feb 2015

    Posted 19 Feb 2015 Link to this post

    I filled the appointment  form but if i double click anywhere then the from gets refreshed how to overcome this
  13. Chandz
    Chandz avatar
    7 posts
    Member since:
    Feb 2016

    Posted 03 Feb Link to this post

    Hello Telerik team,
     I have a Radscheduler and an individual button, in a web form.
    when in week view of the scheduler, it displays the first week (i.e)  jan 3 2016 sunday to jan 9 2016 saturday,
    i want to view the next week on button click (i.e)  jan 10 2016 sunday to jan 16 2016 saturday,
    telerik has davview, weekview, monthview, agendaview and timelineview but not nextweekview..
    Googling does not help me in this case.

    Thanks in advance..
    Hope you people reply a bit faster.
  14. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 05 Feb Link to this post

    Hello Chandesh,

    You can easily observe the next view using the navigation buttons of the RadSheduler. This functionality is demonstrated in the Overview of the control in our online demos below:

    http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx


    In addition, I noticed that you have submitted your inquiry on a numerous forum thread, where different topics are discussed. I would like to ask you to avoid such practice, because this is changing the topic of the threads and they become quite inconsistent. Also, with such approach the replies would become duplicated and it is quite hard to discuss the problem in a consistent manner.

    A best practice would be to submit a separate thread, where you can post your question and we can focus on it, while the community still have a chance to jump into the discussion.

    Thank you in advance for your understanding.

    Regards,
    Nencho
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017