开发者

DropDownList On telerik grid with inline Edit Option mvc

I am using Telerik grid for mvc project , I want drop down list to be in the grid for four values , but I want first to choose the the dropdownlist to be present at inline edit mode and to be disabled at non edit mode here is my bound statement

 column.Bound(objUser => objUser.UserState)
  开发者_Python百科          .ClientTemplate(                             
                                    Html.Telerik().DropDownList()
                                    .Name("UserState<#= UserState #>")
                                    .BindTo(new SelectList(ProjectTest.Controllers.UserController.UserStateList().ToList()))
                                    .Encode(false)
                                    .ToHtmlString().Replace("{", "{{").Replace("}", "}}")).Encoded(false)

        .Title("User State");


I've been wrestling with this too. take a look at the link below, in which I asked the same type of question. In my case, I managed to get this working, but still have some questions about HOW I got it working. Anyway, I hope this helps ...

Telerik MVC Grid: How to use DropDownList in a column?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜