Skip to content

Instantly share code, notes, and snippets.

View gramx's full-sized avatar

Grahame Cenkner gramx

  • Calgary, Alberta, Canada
View GitHub Profile
@gramx
gramx / Index.cshtml
Last active April 6, 2016 17:17
Example that uses both server side if's and client side if's in a Kendo Razor Grid
@using Kendo.Mvc.UI;
@using Comp.Security;
@model IEnumerable<Comp.DataModels.MobileTimesheetListing>
@{
ViewBag.Title = "Staging Timesheet Listing (mV)";
ViewBag.Search = false;
CompPrincipal user = (CompPrincipal)User;
bool canDelete = user.Access(user.GetPermissionID("Timesheet.mV.Delete"));
bool canEdit = user.Access(user.GetPermissionID("Timesheet.mV.Edit"));
}