This is a migrated thread and some comments may be shown as answers.
grid with ddl
0 Answers 13 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Srikar
Top achievements
Rank 1
Srikar asked on 10 Apr 2012, 12:56 PM
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.
Tags
General Discussions
Asked by
Srikar
Top achievements
Rank 1
Share this question
or