Created
May 24, 2012 05:09
-
-
Save vkoppaka/2779595 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IQueryable<DomainModel.Database.AccessLevel>>" %> | |
| <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> | |
| Index | |
| </asp:Content> | |
| <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> | |
| <h2>Access Level List</h2> | |
| </asp:Content> | |
| /*Now, let us add the Telerik Grid. | |
| Use the below snippet to add Grid - | |
| */ | |
| <% Html.Telerik().Grid(Model) | |
| .Name("AccessLevelList") | |
| .Columns(c => | |
| { | |
| c.Bound(o=>o.Access_Level_Id).Title("Access Level Id"); | |
| c.Bound(o => o.Access_Level_Role).Title("Role Name"); | |
| }) | |
| .PrefixUrlParameters(false) | |
| .Sortable() | |
| .Pageable() | |
| .Filterable() | |
| .Groupable() | |
| .Render(); | |
| %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment