@model List<Logstar.Model.SysAdmin.Admin.GMCountry>
@(Html.Kendo().Grid(Model)
.Name("GridDMGeo")
.Columns(columns =>
{
columns.Bound(p => p.CountryId).Width(70).Title("CountryIdEncode").Column.Visible = false;
columns.Bound(p => p.CountryCode).ClientTemplate(@Html.ActionLink("#=CountryCode#", "ViewCountry", new { CountryIdEncode = ("#=CountryIdEncode#") }).ToHtmlString()).HeaderTemplate("Country Code").Width(70);
columns.Bound(p => p.CountryName).Width(70).Title("Country Name");
columns.Bound(p => p.CrtDate).Width(70).Title("Updated On");
columns.Bound(p => p.CrtBy).Width(70).Title("Updated By");
})
.Pageable()
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
)
My Controller:
public ActionResult ViewCountryList()
{
ClsCountry objClsCountry = new ClsCountry();
ViewBag.Encode = new Func<string, string>(LogstarSecurity.Encode);
return View("GMCountryWL", objClsCountry.GetGMCountry(0));
}
This Works perfectly in Non-Azure but i'm facing issues in Kendo
For Kendo Grid: Error is ::Index must be within the bounds of the List.Parameter name: index
For Kendo AutoComplete ::Entry point was not found.