Template description and use

ListPartialWithDexGridView.tt

Genetates stongly-typed partial view with the DevExpress GridView in it.

the following feature is in the souce code only, will be available in the next release
ViewData["ShowAdd"] bool value controls visibility if the Add New link. This feature can be used programmatically as in:
         public ActionResult PolicyIndex(int ClientId, bool ShowAdd)
        {
            var contracts = db.GetClientPolicies(ClientId);
            ViewData["ShowAdd"] = ShowAdd;
            return View(contracts);
        }

The Html.ActionLink("Create New", "Create") below the grid is shown only if the ViewData["ShowAdd"] is set to true.

Alternately, if you do not need to control the visibility of the "Create New" you can look for:
<% if (ViewData[ "ShowAdd" ] != null && bool.Parse(ViewData[ "ShowAdd" ].ToString()))
   { %>

and the corresponding:
<% } %>

that wrap the Html.ActionLink("Create New", "Create") row at the scaffolded page and just delete them both.

PartialListWrapper.tt

this template is in the souce code only, will be available in the next release
Generates wrapper there the partial view with the DevExpress GridView is rendered into. This is stongly-typed view to ensure the partial view will receive the Model.

HtmlEditorWithCustomizableToolbars.tt

this template is in the souce code only, will be available in the next release
Scaffold (partial) view with HtmlEditor in it including 2 default toolbars. Having toolbars recreated as custom toolbars in the view enables customization and even active changes. For example it is easy to show/hide individual toolbar options for specific user groups.

Last edited Feb 6, 2011 at 2:12 AM by pegas, version 1

Comments

No comments yet.