This question is locked. New answers and comments are not allowed.
Hi to All ,
am doing a razor mvc3 app.in this am using Telerik grid. i want to to get drodownlist in editing. for this am doing like below
my control code:
-------------------------
public ActionResult sample2()
{
ViewBag.Name = from i in entity.EMPs
select i.ENAME;
return View(entity.EMPs.ToList());
}
...................view...............................
Columns(columns =>
{
columns.Bound(p => p.EMPNO).ReadOnly().Width(100);
columns.Bound(p => p.ENAME).Width(400);
columns.Bound(p => p.DEPTNO).ClientTemplate("<#= OptionalEmail #>");
.............................EditorTemplates (in my view floder)................................
@model string
@(
Html.Telerik().DropDownListFor(e => e).BindTo(new SelectList(ViewBag.Name))
)
but am not getting drop down in editting . how to do it plz help me.
am doing a razor mvc3 app.in this am using Telerik grid. i want to to get drodownlist in editing. for this am doing like below
my control code:
-------------------------
public ActionResult sample2()
{
ViewBag.Name = from i in entity.EMPs
select i.ENAME;
return View(entity.EMPs.ToList());
}
...................view...............................
Columns(columns =>
{
columns.Bound(p => p.EMPNO).ReadOnly().Width(100);
columns.Bound(p => p.ENAME).Width(400);
columns.Bound(p => p.DEPTNO).ClientTemplate("<#= OptionalEmail #>");
.............................EditorTemplates (in my view floder)................................
@model string
@(
Html.Telerik().DropDownListFor(e => e).BindTo(new SelectList(ViewBag.Name))
)
but am not getting drop down in editting . how to do it plz help me.