on-internet
← Community

Kendo UI add DropDownList into Grid (MVC)

Stack Overflow ·

I'm Binding to a Grid class (UserId,FirstName,LastName,Choice). Does anybody know how to put this code in a column (Choice) in a Kendo Grid in MVC 4: @(Html.Kendo().DropDownList() .Name("Test") .DataTextField("Text") .DataValueField("Value") .Events(e => e.Change("change")) .BindTo(new List<SelectListItem>() { new SelectListItem() { Text = "Option1", Value = "1" }, new SelectListItem() { Text = "Option2", Value = "2" } })) <script> function change() { var value = $("#Choice").val(); } </script> .... columns.Bound(p=> p.FirsName); columns.Bound(p => p.LastName); //How to Bind Choice??? I also n

Comments

Sign in or sign up to comment and upvote.

No comments yet.