This question is locked. New answers and comments are not allowed.
Hi Im fairly new to telerik mvc and Open Access.
I have managed to get working a basic CRUD example. However I now wish to have my own custom editor.
I cannot find an example of how to link to my own custom editor.
The above is where i think the problem lies as most examples seem to point at ("SometingModel")
This is what I'm using to populate my grid.
Any help would be great
I have managed to get working a basic CRUD example. However I now wish to have my own custom editor.
I cannot find an example of how to link to my own custom editor.
@model IEnumerable<MacrailSQL.myCompanies> @(Html.Telerik().Grid(Model) .Name("GridUsers") .DataKeys( keys => keys .Add( o => o.Company_ID) .RouteKey("Company_ID")) .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image).ImageHtmlAttributes(new { style = "margin-left:0" })) .DataBinding(dataBinding => dataBinding .Ajax() .Select<CompanyController>(o => o._select()) .Insert<CompanyController>(o => o._insert()) .Update<CompanyController>(o => o._update()) ) .Sortable() .Filterable() .Reorderable(cf => cf.Columns(true)) .Resizable(cf => cf.Columns(true)) .Pageable() .Scrollable() .Selectable() .Columns(columns => { columns.Command(commands => { commands.Edit() .ButtonType(GridButtonType.Image); }).Width(80); columns.Bound(o => o.Company_ID).Title("Company ID"); columns.Bound(o => o.Company_Name).Title("Company Name"); columns.Bound(o => o.Date_Created).Title("Date Created"); columns.Bound(o => o.Date_Updated).Title("Date Updated"); columns.Bound(o => o.Status).Title("Status") .ClientTemplate("<input type='checkbox' disabled='disabled' name='U_status' <#= Status? \"checked='checked'\" : \"\" #> />"); }) .Editable(editing => editing.Mode(GridEditMode.PopUp)) )@model IEnumerable<MacrailSQL.myCompanies>The above is where i think the problem lies as most examples seem to point at ("SometingModel")
public IEnumerable<MacrailSQL.myCompanies> GetCompanies() { return db.myCompanies.Select(c => new MacrailSQL.myCompanies { Company_ID = c.Company_ID, Company_Name = c.Company_Name, Date_Created = c.Date_Created, Date_Updated = c.Date_Updated }).ToList(); }This is what I'm using to populate my grid.
Any help would be great