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

[Solved] ComboBox in Window

4 Answers 148 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cyndie
Top achievements
Rank 1
Cyndie asked on 26 Jul 2010, 03:12 PM
When trying to put a ComboBox in the content of a modal Window, the textbox part of the control is in the window as expected, but the dropdown list portion of the ComboBox (when selecting the arrow) is showing up underneath the window.  I've tried the ComboBox using the .Render() and without, but the same things happens. 

<% Html.Telerik().Window()
       .Name("AdvancedStuff")
       .Title("Alarm Logs Advanced Options")
       .Content(() =>
           {%>
            <% Html.Telerik().ComboBox()
               .Name("Locations")
                .AutoFill(true)
                .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxLocs", "ComboBox"))
                .Render();
            %>
           <%})
       .Buttons(buttons => buttons.Maximize().Close())
       .Draggable(true)
       .Width(600)
       .Height(600)
       .Resizable()
       .Render();    
%>

4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 26 Jul 2010, 03:21 PM
Hello Cyndie,

The observed behavior is result of bigger window's zindex than combobox. You can avoid this issue with setting zindex of the combobox bigger than window:
<%= Html.Telerik().ComboBox()
        .Name("ComboBox")
        .HtmlAttributes(new { style = "zindex:10100"})
%>

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Cyndie
Top achievements
Rank 1
answered on 26 Jul 2010, 03:35 PM
Thank you for the quick response.  Unfortunately, I don't see any difference with adding zindex values.  When I move the window around when the dropdown list is down, the list stays fixed in the same place (that is how I found it under the window)
0
Accepted
Georgi Krustev
Telerik team
answered on 26 Jul 2010, 04:28 PM
Hello Cyndie,

To apply z-index correctly you need to use this code:
.HtmlAttributes(new {style="z-index:1000000"})

Anyway the items list will not close when you decide to move window. This is a known issue, which should be fixed for the official release of the Telerik Components for ASP.NET MVC.

All the best,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Cyndie
Top achievements
Rank 1
answered on 26 Jul 2010, 05:30 PM
Thank You Georgi!  That took care of the issue.

cyndie
Tags
Window
Asked by
Cyndie
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Cyndie
Top achievements
Rank 1
Share this question
or