2012-12-02 124 views
0

在MVC中使用Kendo UI 4 。Kendo:DropDownList填充容器

我有一個table.td定義爲這樣一個下拉列表:

@(Html.Kendo().DropDownListFor(model => model.AppUserStatus) 
             .DataTextField("Text") 
             .DataValueField("Value") 
             .BindTo(@ViewBag.StatusList) 

            ) 

我如何得到它來填補,它包含在table.td的寬度是多少?

回答

2

您可以直接使用包裝通過HtmlAttributes方法添加屬性。在你的情況下,以下應該做的工作:

.HtmlAttributes(new { style = "width:100%;" })