Removing Timezone combo box from navigator

3 posts, 0 answers
  1. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 25 Apr 2011 Link to this post

    How does one go about removing the timezone combo box from the navigator?
  2. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 25 Apr 2011 Link to this post

    Dim i As Short = 0
    For Each c As RadElement In schNavigator.RootElement.ChildrenHierarchy
        If i = 56 Then
            c.Visibility = ElementVisibility.Hidden
        End If
        i += 1
    Next
    I have used this code to do the job so far, but I don't like the fact that I'm having to hard code an index as this index could change in the future. Is there a better way?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 28 Apr 2011 Link to this post

    Hi Brennan,

    Thank you for writing.

    You can hide the time zones drop down by directly accessing it through the SchedulerNavigatorElement:
    radSchedulerNavigator1.SchedulerNavigatorElement.TimeZonesDropDown.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
     
    Should you have any other questions, do not hesitate to contact us.

    Best wishes,
    Stefan
    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
Back to Top