Hide TimeZone dropdown menu of radScheduleNavigator

4 posts, 1 answers
  1. Shruti
    Shruti avatar
    11 posts
    Member since:
    Nov 2010

    Posted 27 Nov 2010 Link to this post

    Hello,
              I want to hide the visibility of TimeZone dropdown menu in radScheduleNavigator.

              Can anyone suggest how to do this in C#

    Thanks..
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 27 Nov 2010 Link to this post

    Hello,

    This will set the visibility for you as required.
    hope this helps
    Richard

    ((RadDropDownListElement)this.radSchedulerNavigator1.SchedulerNavigatorElement.Children[2].Children[0].Children[2].Children[5].Children[1]).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Shruti
    Shruti avatar
    11 posts
    Member since:
    Nov 2010

    Posted 27 Nov 2010 Link to this post

    thanks..

    it worked.

    Can you please explain me the command? specially, SchedulerNavigatorElement.Children[2].Children[0]....
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 27 Nov 2010 Link to this post

    Hello,

    No problem. Glad that worked for you.

    What you are doing there is finding the RadDropDownListElement that is nested inside the RadSchedulerNavigator.  Most, if not all RadControls are made up of several elements. So a RadButton for example would have a button element, a border element, a fill primitive element and so on.
    If you go to the designer and click on the smart tag, and look at "Edit UI Elements" then you will see a hierarchy of different elements. Each one of these elements can be controlled.

    Hope this helps. Please remember to mark as answer so others can find the solution too and if you need more information, just let me know.

    Thanks
    Richard
Back to Top