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

ComboBox no longer expands

3 Answers 102 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 08 Mar 2012, 05:40 PM
I have a page that I am adding a wrapper div to after the page has been completely loaded.  However, when this div is added, RadComboBoxes stop expanding or receiving input of any kind.  Upon further testing, I found that the same happens for any control that has a popup div, such as datepickers.  This is the code I'm using to add the div:

var body = GetFrameBody();
body.innerHTML = "<div id='reportwrapper' style='overflow:auto; position: relative;'>" + body.innerHTML + "</div>";

Thanks in advance for any help/insight you can offer.

3 Answers, 1 is accepted

Sort by
0
Cat Cheshire
Top achievements
Rank 1
answered on 09 Mar 2012, 05:53 PM
I added the 'reportwrapper' div statically - and the dropdown expands properly.
So you can use this approach:
<div id='reportwrapper' style='overflow: auto; position: relative;'>
    <telerik:RadComboBox ID="RadComboBox1" runat="server">
        <Items>
            <telerik:RadComboBoxItem Text="test1" />
            <telerik:RadComboBoxItem Text="test2" />
        </Items>
    </telerik:RadComboBox>
</div>
0
Brad
Top achievements
Rank 1
answered on 09 Mar 2012, 05:55 PM
It needs to be added dynamically because of the scenario we are working to fix.  However, now I'm having a problem where the dropdowns are appearing with their position relative to the page and not to the div in which they reside (so if I scroll they are at the wrong place).  Ideas?
0
Cat Cheshire
Top achievements
Rank 1
answered on 09 Mar 2012, 06:01 PM
The code snippet below gives only a partial idea about your scenario.
Can you provide some simplified but working code here and explain what do you want to achieve?
Tags
ComboBox
Asked by
Brad
Top achievements
Rank 1
Answers by
Cat Cheshire
Top achievements
Rank 1
Brad
Top achievements
Rank 1
Share this question
or