Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1175
WebDropDown: Fixed Standard-Width, dynamic dropdown width
posted

Hello there,

I'd like to have the normal control having a fixed width, but when the drop down appears to set the dropdownwidth dynamic.

I tried something like this:

                                                    <div style="overflow:hidden">
                                                        <stgwc:DropDown ID="ddlRoleTypeEdit" ClientIDMode="Static"
                                                            runat="server"
                                                            Width="170px"
                                                            DropDownContainerWidth="100%"
                                                            EnableDropDownAsChild="true"
                                                            OnInit="DropDown_OnPreRender"
                                                            >
                                                            
                                                            <DropDownItemBinding  KeyField="ROLETYPE_CDE" ValueField="ROLETYPE_CDE" TextField="DESCR" />
                                                        </stgwc:DropDown>
                                                    </div>

So the width with 170px is fine, but the dropdown list gets way smaller, and I have no idea how this is calculated.

Is the a possibility to do this proper? So the dropdown gets bigger dynamically depending on the font size?

Thanks for your answers.

Müller Matthias.

Parents
No Data
Reply Children
No Data