Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Populating combo in grid from server-side
posted

I am using 2013 vol 1, with MVC4 and Visual Studio 2012.

I've had a look at the sample posted here http://es.infragistics.com/products/jquery/sample/grid/editing-combo-editor on how to add a combo to a grid.

I'd prefer to be able to populate the combo from a datasource in my repository without having a whole bunch of jQuery on the page to do so.

What is the easiest way to set the datasource of each combo in my grid to the data returned by a method in my data repository?

My repository looks something like this...
 

public static class VisaTypeRepository

{

public static List<EditableVisaType> GetAllRecords()

{
var db = new WorkawayDb();
var visaTypes = (from v in db.visatypes
where v.deleted == false
select new EditableVisaType
{
id = v.id,
name = v.name,
fromdate = v.fromdate,
todate = v.todate,
qualification = v.qualification,
deleted = v.deleted
}).ToList();
return visaTypes;
}

Thanks

Parents Reply Children
No Data