/// <summary> /// Initializes the controls. /// </summary> /// <param name="container">The container.</param> protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { base.DesignerMode = ControlDesignerModes.Simple; // set root node for page selector PageSelector.RootNodeID = Telerik.Sitefinity.Abstractions.SiteInitializer.CurrentFrontendRootNodeId; }
/// <summary> /// Initializes the controls. /// </summary> /// <param name="container"></param> /// <remarks> /// Initialize your controls in this method. Do not override CreateChildControls method. /// </remarks> protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { ((ITextControl)this.TitleControl).Text = this.Title; ((ITextControl)this.ExampleControl).Text = this.Example; ((ITextControl)this.DescriptionControl).Text = this.Description; this.PaymentMethodIdHidden.Value = this.Value.ToString(); }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { TwitterWidgetRenderMode.Items.Add(new ListItem() { Text = "Homepage", Value = "1" }); TwitterWidgetRenderMode.Items.Add(new ListItem() { Text = "Interior page", Value = "2" }); }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { base.InitializeControls(container); List <string> taxonNames = new List <string>(); GetAllTaxonNamesForDataItem(taxonNames); //gets the current user var user = ClaimsManager.GetCurrentIdentity(); if (!user.IsUnrestricted) { //gets current user role names var currentUserRoleNames = user.Roles.Select(r => r.Name.ToLower()); bool isDynamicItemAllowed = false; //always allowed for everyone if (taxonNames.Contains("pm-everyone")) { isDynamicItemAllowed = true; return; } foreach (var roleName in currentUserRoleNames) { //filter dynamic items for Enterprise customers if (taxonNames.Contains(roleName)) { isDynamicItemAllowed = true; break; } } if (!isDynamicItemAllowed) { Redirect403(); } } }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { base.DesignerMode = ControlDesignerModes.Simple; }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { // Place your initialization logic here this.ConfigureMetaFieldName(); }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { base.DesignerMode = ControlDesignerModes.Simple; this.TempSelector.DesignedControlType = this.PropertyEditor.Control.GetType().FullName; }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { base.InitializeControls(container); AddToCartButton.Command += new CommandEventHandler(AddToCartRentalButton_Command); }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { this.PageSelector.RootNodeID = Telerik.Sitefinity.Abstractions.SiteInitializer.CurrentFrontendRootNodeId; }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { // Place your initialization logic here }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { base.InitializeControls(container); ShoppingCartGrid.ItemDataBound += ShoppingCartGrid_RentalsItemDataBound; }