Step 1:columns.Bound(c => c.PRODUCT_CD).Title("Product Code").EditorTemplateName("DropDown");
Step 2: add a Editor Template folder in shared folder
Step 3: Right click on it add a view like this
@model String
@(Html.Telerik().ComboBox()
.Name("ComboBox1")
.BindTo(ViewData["data"] as SelectList)
.ClientEvents(events => events
.OnChange("onChange"))
)
@Html.TextBoxFor((model => model), new { id = "textbox1", style = "display:none;" })
Step 4: Add this Script file in ur view(create/Index/Edit)
Step 2: add a Editor Template folder in shared folder
Step 3: Right click on it add a view like this
@model String
@(Html.Telerik().ComboBox()
.Name("ComboBox1")
.BindTo(ViewData["data"] as SelectList)
.ClientEvents(events => events
.OnChange("onChange"))
)
@Html.TextBoxFor((model => model), new { id = "textbox1", style = "display:none;" })
Step 4: Add this Script file in ur view(create/Index/Edit)
No comments:
Post a Comment