Kendo dropdown width

前端 未结 7 1178
北恋
北恋 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:15

    In case you have to give different width to different controls you can follow the below approach for giving the width to the specific control.

    $("#div1").width(250).kendoDropDownList({
        dataSource: items,
        dataTextField: "Name",
        dataValueField: "Id",
    })
    

提交回复
热议问题