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

Hide TimeZone dropdown menu of radScheduleNavigator

3 Answers 110 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Shruti
Top achievements
Rank 1
Shruti asked on 27 Nov 2010, 06:46 AM
Hello,
          I want to hide the visibility of TimeZone dropdown menu in radScheduleNavigator.

          Can anyone suggest how to do this in C#

Thanks..

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 27 Nov 2010, 07:51 PM
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;
0
Shruti
Top achievements
Rank 1
answered on 27 Nov 2010, 09:10 PM
thanks..

it worked.

Can you please explain me the command? specially, SchedulerNavigatorElement.Children[2].Children[0]....
0
Richard Slade
Top achievements
Rank 2
answered on 27 Nov 2010, 09:53 PM
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
Tags
Scheduler and Reminder
Asked by
Shruti
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Shruti
Top achievements
Rank 1
Share this question
or