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

Removing Timezone combo box from navigator

2 Answers 55 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Brennan
Top achievements
Rank 1
Brennan asked on 25 Apr 2011, 03:35 PM
How does one go about removing the timezone combo box from the navigator?

2 Answers, 1 is accepted

Sort by
0
Brennan
Top achievements
Rank 1
answered on 25 Apr 2011, 04:14 PM
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?
0
Stefan
Telerik team
answered on 28 Apr 2011, 10:24 AM
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
Tags
Scheduler and Reminder
Asked by
Brennan
Top achievements
Rank 1
Answers by
Brennan
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or