views:

32

answers:

0

Hi all,

I have a jQueryGrid in which a dropdown list needs to be implemented.

The code that I have written below just displays the data and that too only the first result:

new JQGridColumn{
                        DataField = "DepartmentRoleName",
                        HeaderText = "Deptt Role/s",
                        Sortable = false, TextAlign = Trirand.Web.Mvc.TextAlign.Left,
                        Width = 50
                    }

Also please I would like to know how the existing LINQ query would need to be changed.

It currently is as under:

empDetails = (from emp in empDetails
                          select new HS.Setup.Models.EmployeeDetailsForGivenHospital
                          {
                              UserName = emp.UserName,
                              EmployeeId = emp.EmployeeId,
                              EmployeeDesignationName = Enum.GetName(typeof(HS.Business.Utility.Designations), emp.EmployeeDesignation),
                              DepartmentRoleName = emp.DepartmentRoleName, // This is the dropdown list
                          }).ToList();

Thanks in advance, TRS.