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

RadDatePicker and RadTimeView popup doesn't seem to be intelligent like RadCombo

7 Answers 51 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 24 Sep 2008, 11:48 PM
Hi

I am using Telerik controls 2008 Q2 SP2.

When a RadDatePicker or RadTimeView is near the bottom of the page the popup always shows past the bottom of the page. This means that the user has to scroll down to select anything.

I noticed that the RadCombo is intelligent enough to detect the bottom of the page and show the popup above the control.

Is there a way of doing this with the RadDatePicker and RadTimeView?


Kind regards

Mark Eaton

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 25 Sep 2008, 06:29 AM
Hi Mark,

Check out the following code library submission which explains how to open the calendar above the RadDatePicker instance if it is on the bottom on the page.
How to open RadDatePicker calendar depending on its position

Thanks
Shinu
0
Mark
Top achievements
Rank 1
answered on 26 Sep 2008, 01:50 AM
I tried the example and it works well for 1 RadDatePicker.

However as I have 2 of these I share a RadCalender. I find that the code it uses:

    var popupElement = datePicker.get_popupContainer();
    var dimensions = datePicker.getElementDimensions(popupElement);

... returns with the varaible dimensions.x = 0 and dimensions.y = 0. As such I can never get the calendar height.

I tried just getting the height of a the RadCalender itself but I don't know how to do that either.

Thanks again for helping.


Kind regards

Mark Eaton
0
Mark
Top achievements
Rank 1
answered on 05 Oct 2008, 10:08 PM
It's now been over a week. Can I please have an answer to my query.


Kind regards

Mark Eaton
0
Missing User
answered on 06 Oct 2008, 07:28 AM
Hi Mark,


I tried to reproduce the problem locally, but to no avail. Can you please check the attached application and let me know if I am missing something?

Greetings,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 09 Oct 2008, 11:23 PM
Hi Plamen

Yes you are missing something.

In my response dated "9/25/2008 8:50:35 PM" I said that my date pickers share a RadCalendar.

Can you please test this sceario.

Like I also said in that post it works fine if I don't share a RadCalendar.


Kind regards

Mark Eaton
0
Missing User
answered on 10 Oct 2008, 07:49 AM
Hello Mark,


Unfortunately we are still unable to reproduce the problematic behavior you are experiencing. Therefore, it will be best if you modify my project (attached to this message) to replicate the issue that you have and send us steps to reproduce the issue, thus I will do my best to give you an accurate resolution. Thanks for your cooperation.


Greetings,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 14 Oct 2008, 02:51 AM
Hi Plamen

I managed to get it working.

It turned out that my shared calendar was wrapped in a div that had style="none'. Although the calendar would always display when clicking on a RadDatePicker the dimensions of it would always be zero.


Kind regards

Mark Eaton
Tags
Input
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Missing User
Share this question
or