Kendo dropdown width

前端 未结 7 1173
北恋
北恋 2021-02-07 15:07

Hi can someone tell me how to set width for kendo dropdown? Here is my code sample and it is not working. Anything wrong in that?

$(\"#div1\").kendoDropDownList(         


        
7条回答
  •  野性不改
    2021-02-07 15:30

    The kendoDropDownList does not have a property width for it's configuration. See here: Kendo Docs

    What you can do, is styling the correct class. Since you hopefully do know where your dropdown lies, you can specify the selector so it doesn't apply to all dropdowns.

    #myContainer .k-dropdown {
         width: 250px;
    }
    

提交回复
热议问题