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

Help, a combobox does not seem to work correctly on a tooltip

7 Answers 63 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Chris Dalessandri
Top achievements
Rank 1
Chris Dalessandri asked on 11 Sep 2008, 09:46 PM
When I place a combobox on a tooltip then the drop down seems to be relative to the webpage behind the tooltip, and it is not relative to the tooltip.  This causes the dropdown to appear somewhere else on the page instead of below the combobox.

7 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Sep 2008, 08:01 AM
Hi Chris,

Please check the attached sample project which shows RadComboBox placed in a tooltip. It works as expected at our side.

Best wishes,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Dalessandri
Top achievements
Rank 1
answered on 12 Sep 2008, 01:39 PM
Its works great as long as your browser window doesn't scroll.  If you have a longer page, and you scroll down a little then the dropdown does not line up with the combobox any more.

The problem exists with your example also if you give your page a 1200 height and then scroll to the bottom and then click to open your combo.

I have an example, can I post the code somewhere?
0
Chris Dalessandri
Top achievements
Rank 1
answered on 12 Sep 2008, 01:50 PM
Just add this html below your tooltip and run it.  If you use this code, and scroll down the page to the bottom, and then click your dropdown you will see that the dropdown items appear off the page somewhere.  It migh tnot even be visible, you might need to add about 10 items to your combo so that you can see it slide down into view from above the visible window.  Its hard to explain what is going on but I can demo it if you need me to.



        <table style="height:1200px;"
        <tr> 
        <td>scroll down until you see the next message</td> 
        </tr> 
        </table> 
        Now click the combo. 

0
Chris Dalessandri
Top achievements
Rank 1
answered on 12 Sep 2008, 02:00 PM
A little more testing seems to show this only happens in FireFox, IE7 seems to display it correctly.
0
Yana
Telerik team
answered on 15 Sep 2008, 12:32 PM
Hi Chris,

You are right, there is really a problem with dropdown of RadComboBox in a tooltip. I logged this issue in our bug tracking system and will try to fix it as soon as possible.

Regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Dalessandri
Top achievements
Rank 1
answered on 16 Sep 2008, 02:48 AM
thanks, I look forward to the update.  Do I have to wait until the next quarterly release or is this something you can release in a hotfix?

thnaks.
0
Rosi
Telerik team
answered on 17 Sep 2008, 09:36 AM
Hi Chris Dalessandri,

Please find modified atatched project which works as expected now.

All you have to do is to hook on the OnClientDropDownOpening event and execute the following code:
   
        <script type="text/javascript">  
          
        function OnClientDropDownOpening(sender,e)  
        {  

        if

(!$telerik.isIE)

            sender.set_offsetY(document.documentElement.scrollTop);  
        }  
          
        </script> 


Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Chris Dalessandri
Top achievements
Rank 1
Answers by
Yana
Telerik team
Chris Dalessandri
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or