@(Html.Kendo().Grid(Model) .Name("gridLLPType") .Columns(columns => { columns.Bound(p => p.ProviderType).Title("Type").Width(150); columns.Bound(p => p.ProviderTypeName).Title("Type Name").Width(150); columns.Bound(o => o.Provider_Type_Status).ClientTemplate("# if( Provider_Type_Status == true) { # Active # } else { # InActive # } #") .Filterable(filterable => filterable.Messages(m => m.IsFalse("InActive")) .Messages(m => m.IsTrue("Active"))) .Title("Status").Width(80); columns.Command(command => command.Edit()).Width(200); }) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Sortable() .Scrollable() .Filterable(filter => { filter.Operators(f => f.ForString(o => { o.Clear(); o.Contains("Contains"); o.DoesNotContain("Does Not Contain"); o.IsEqualTo("Is Equal To"); o.IsNotEqualTo("Is Not Equal To"); o.StartsWith("Starts With"); o.EndsWith("Ends With"); })); }) .DataSource(dataSource => dataSource .Ajax() // // .PageSize(15) .ServerOperation(false) .Model(model => model.Id(p => p.Provider_Type)) //.Events(events => events.RequestEnd("OnRequestEnd_gridLLPType")) .Read(read => read.Action("LLPTypeMasterRead", "NewMasterData", new { area = "AreaMasterData" })) .Create(update => update.Action("AddLLPProviderType", "NewMasterData", new { area = "AreaMasterData" })) .Update(update => update.Action("UpdateLLPProviderType", "NewMasterData", new { area = "AreaMasterData" })) ) )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)