IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
After you Locations module: Create the designer viewLocations module: Create the locations details view, you must create the Locations view widget. Perform the following:
using
Telerik.Sitefinity.Web.UI.ContentUI;
Telerik.Sitefinity.Modules.Pages.Web.UI;
Telerik.Sitefinity.Web.UI.ControlDesign;
LocationsModule.Web.UI.Public.Designers;
[RequireScriptManager]
[ControlDesigner(
typeof
(LocationsViewDesigner))]
public
class
LocationsView : ContentView
{
}
override
string
ModuleName
get
if
(String.IsNullOrEmpty(
base
.ControlDefinitionName))
return
LocationsModule.ModuleName;
.ModuleName;
set
.ModuleName = value;
ControlDefinitionName
LocationsDefinitions.FrontendDefinitionName;
.ControlDefinitionName;
.ControlDefinitionName = value;
MasterViewName
(!String.IsNullOrEmpty(
.MasterViewName))
.MasterViewName;
LocationsDefinitions.FrontendListViewName;
.MasterViewName = value;
DetailViewName
.DetailViewName))
.DetailViewName;
LocationsDefinitions.FrontendDetailViewName;
.DetailViewName = value;
EmptyLinkText
"Edit"
;
In the procedure above, you first specify the module name. Then, you set the name of the configuration definition that the control uses to construct the views. Finally, you define the views that are shown when the control is in the ContentViewDisplayMode.Master and the ContentViewDisplayMode.Detail states. You reference the master list view and the details view.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important