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

[Solved] combobox not working with showModalDialog

0 Answers 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 1
Joe asked on 08 Nov 2010, 06:49 PM

Hello,

I have a combobox that works fine with it's own window, but when I launch the app in a showModalDialog box, it does not display correctly. Has anyone experienced this before? 

Details
In modal dialog, the combobox is open when user goes to the page.

If I programaticaly have a default selection. The selection is displayed, but the combobox will not display any choices.
example, commenting this back in.
//comboboxConditionalOrderType.select(1);


Declaration
<div id="subHeaderDiv" align="center" style="height:25px;width:100%"
        <table cellspacing="2" cellpadding="0" style="width:100%;">
            <tr>
                <td style="font-size: smaller;"  align="right" valign="top" class="boldLabel" >Conditional Order Type </td>
                <td style="width: 70%;" valign="top" align="left">
                        <%= 
                        Html.Telerik().ComboBox()
                        .Name("ConditionalOrderType")        
                .Filterable()                      
                .HtmlAttributes(new { style = "width: 280px; " })
                .ClientEvents(events => events.OnChange("ConditionalOrderType_onChange"))   
                %>
                 </td>
                </tr>
        </table>
</div>
 
Adding data
var comboboxConditionalOrderType = $('#ConditionalOrderType').data('tComboBox');
var dataSource =
[
        { Text: "MCO - Contingent", Value: "MCO" },
        { Text: "O - One Cancel", Value: "O" },
        { Text: "T - One Triggers", Value: "T" }
];
comboboxConditionalOrderType.dataBind(dataSource);
//comboboxConditionalOrderType.select(1);


Any help would be greatly appreciated.
Thanks,
Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Share this question
or