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

RadComboBox in a RadWindows ContentTemplate

1 Answer 70 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Karl Maynard
Top achievements
Rank 1
Karl Maynard asked on 05 Jun 2012, 08:13 PM
I have a rad combobox in a user control that is rendered inside the content template of a RadWindow....

<telerik:RadWindow ID="popupWindow" VisibleOnPageLoad="false" runat="server">
    <ContentTemplate>
        <!-- Add Any UserControls For Server Side Show/Hide here. -->
        <uc:CaseFlags runat="server" ID="ucCaseFlags" Visible="false" />
    </ContentTemplate>
</telerik:RadWindow>

Initially, when i click in the area for the rad combobox the drop down appeared behind the radwindow, so i added a high value ZIndex value, and now it appears in the correct location.

<div>
    <telerik:RadComboBox ID="comboFlags" runat="server" Height="140px" Width="200px" ZIndex="10000">
    </telerik:RadComboBox>      
 
</div>


However, if you open the drop down, then move the rad window the drop down part of the rad combobox doesnt remain inside the rad window ...

You can see an example of the result in the attached screen capture.



Is there a fix/work around to fix this problem....

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Jun 2012, 04:24 AM
Hi Karl Maynard,

In this case you could close the drop down manually on the client-side DragStart event of the RadWindow as follows.

JS:
<script type="text/javascript">
    function OnClientDragStart(sender,args)
    {
        var comboBox =  $find("<%= RadComboBox1.ClientID %>");
        comboBox.hideDropDown();
    }
</script>

Hope this helps.

Thanks,
Princy.
Tags
ComboBox
Asked by
Karl Maynard
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or