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

TimePicker is hiding because of PlaceHolder

6 Answers 113 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pan hal
Top achievements
Rank 1
Pan hal asked on 04 Dec 2009, 09:25 PM

I have HTMLPlaceHolders in a RadWindow, and I want to get my  RadTimePicker which is in the same Radwindow to be displayed above the HTMLPlaceHolder but instead it opens behind the HTMLPlaceHolder, Find enclosed the attchement. How to get the TimePicker to show correctly on HTMLPlaceHolders?

Has someone encountered this problem? Any help would be appreciated?

6 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 07 Dec 2009, 11:30 AM
Hi Pan hal,

 The content of the RadHtmlPlaceholder is rendered in an IFRAME element, which floats above everything else on the page. This is why if the RadHtmlPlaceholder content overlaps with another element, that element will always be covered.So, if you want to avoid this unpleasant effect you have to be careful to position the elements on your page accordingly.

Setting the Visibility of the HtmlPlaceholder to Collapsed would certainly work. As for reducing the opacity - this will not do the trick. I guess hiding the HTML content while a menu popup is visible will not be very pleasing visually, so you may think of showing some sort of image (screenshot?) in the place of the hidden HtmlPlaceholder

Best wishes,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Pan hal
Top achievements
Rank 1
answered on 07 Dec 2009, 04:35 PM
Thanks for the reply. Is there any alternate fix for this. In my code these controls are used in childwindow so positioning  these elements is difficult.

Is there any way to control the height of TimePicker Menu Height. Whats the property for it ?
0
Bobi
Telerik team
answered on 08 Dec 2009, 09:05 AM
Hello Pan hal,

The easiest way to control the Height of the TimePicker drop down is to use the ClockPanel property:

<telerik:RadTimePicker >
            <telerik:RadTimePicker.ClockPanel>
                <ItemsPanelTemplate>
                    <panels:RadUniformGrid Rows="5" Height="70"/>//Here you set the height of the dropdown
                </ItemsPanelTemplate>
            </telerik:RadTimePicker.ClockPanel>
        </telerik:RadTimePicker> 

You can also take a look at the online help:

http://www.telerik.com/help/silverlight/radtimepicker-layout-support.html

I hope that this will help you.
Please let us know if you have any other questions or need some more help.

Sincerely yours,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Pan hal
Top achievements
Rank 1
answered on 09 Dec 2009, 07:11 PM
Thanks.
But We are using telerikScheduler:DateTimePicker and whats the property for this control to set the height of dropdown.

 

0
Teodor
Telerik team
answered on 11 Dec 2009, 12:39 PM
Hello Pan hal,

Actually, DateTimePicker is a custom control developed inside RadScheduler for its internal usage. This, of course does not mean that you cannot use it. However, since it is made to serve to some RadScheduler particular needs, we do not provide easy ways to customize it.

To explain it in some more details, the DateTimePicker is consisted of a RadDatePicker and a SchedulerTimePicker control(again custom control inside RadScheduler). So here is an example of how to predefine the Template:

<telerik:DateTimePicker >
            <telerik:DateTimePicker.Template>
                <ControlTemplate x:Key="DateTimePickerTemplate" TargetType="telerik:DateTimePicker">
                    <StackPanel Orientation="Horizontal">
                        <telerikInput:RadDatePicker x:Name="PART_DatePicker" Width="92"  Margin="0, 0, 5, 0" IsEnabled="{TemplateBinding IsEnabled}" />
  
                        <telerik:SchedulerTimePicker x:Name="PART_TimePicker" Width="90" Height="22" Loaded="PART_TimePicker_Loaded"
                                                     TimeSpanItems="{TemplateBinding TimeItems}" IsEnabled="{TemplateBinding IsEnabled}">
                        </telerik:SchedulerTimePicker>
                    </StackPanel>
                </ControlTemplate>
            </telerik:DateTimePicker.Template>
        </telerik:DateTimePicker>

You may be able to tweak some properties and looks, but currently I really cannot find out how to change the height of SchedulerTimePicker's popup height (since it is a Control and has a RadComboBox which is private unfortunately). As a workaround you can try to develop your custom control including both RadDatePicker and RadTimePicker

As a final advice I suggest you to review this blog post. Using the methods explained within, you might be able to find the RadComboBox inside DateTimePicker's visual tree and play with its properties.

Hope this clarifies the matter. Should you need further help, do not hesitate to contact us.

Kind regards,
Teodor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bruno
Top achievements
Rank 1
answered on 19 Jul 2012, 01:44 PM
Is there a way to force the contro to always open UP instead of the best place?
Tags
HTMLPlaceHolder
Asked by
Pan hal
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Pan hal
Top achievements
Rank 1
Teodor
Telerik team
Bruno
Top achievements
Rank 1
Share this question
or