2012-12-02 132 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%;" })