/// <summary> /// Initializes the designer. /// </summary> /// <param name="container"> /// Represents base implementation for template container. Template containers /// are controls that are used as containers for other controls defined through /// control templates (ITemplate). /// </param> protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { EmailBodyHTML.DisplayMode = Telerik.Sitefinity.Web.UI.Fields.Enums.FieldDisplayMode.Write; EmailBodyHTML.FixCursorIssue = true; ClientEmailBodyHTML.DisplayMode = Telerik.Sitefinity.Web.UI.Fields.Enums.FieldDisplayMode.Write; ClientEmailBodyHTML.FixCursorIssue = true; GridSelector.DataMembers.Clear(); var item = new DataMemberInfo { Name = "Title", HeaderText = "Title", ColumnTemplate = " <strong>{{Title}}</strong>", IsSearchField = true }; GridSelector.DataMembers.Add(item); GridSelector.ShowHeader = false; GridSelector.ShowSelectedFilter = false; GridSelector.BindOnLoad = true; if (this.PropertyEditor != null) { var uiCulture = this.PropertyEditor.PropertyValuesCulture; this.PageSelectorRedirectPage.UICulture = uiCulture; } this.DesignerMode = ControlDesignerModes.Simple; }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { this.DesignerMode = ControlDesignerModes.Simple; //var kendoTheme = new HtmlLink(); //kendoTheme.Attributes["href"] = ResolveClientUrl("EventsRegistration.Resources.KendoWidgetStyle.css"); //kendoTheme.Attributes["rel"] = "stylesheet"; //kendoTheme.Attributes["type"] = "text/css"; //this.Page.Header.Controls.Add(kendoTheme); var listOne = getCustomFields(typeof(Event), typeof(Decimal)); var listTwo = getCustomFields(typeof(Event)); this.comboMaxAtt.DataSource = listOne; this.comboCurrAtt.DataSource = listOne; this.comboProductName.DataSource = listTwo; this.comboMaxAtt.DataBind(); this.comboCurrAtt.DataBind(); this.comboProductName.DataBind(); var item = new DataMemberInfo { Name = "Title", HeaderText = "Title", ColumnTemplate = "<span>{{Title}}</span>", IsSearchField = true }; // set root node for page selector PageSelector.RootNodeID = Telerik.Sitefinity.Abstractions.SiteInitializer.FrontendRootNodeId; }
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { Vector2 vector2 = dataMemberInfo.GetValue <Vector2>(entity); string vector2String = string.Format(CultureInfo.InvariantCulture.NumberFormat, "{0}{1};{2}", ValuePrefix, vector2.x, vector2.y); PlayerPrefsProvider.SetString(fieldKey, vector2String); }
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { List <string> list = dataMemberInfo.GetValue <List <string> >(entity); if (list == null || list.Count == 0) { PlayerPrefsProvider.DeleteKey(fieldKey); } else { string listStringValue = $"{ValuePrefix}{string.Join(";", list)}"; PlayerPrefsProvider.SetString(fieldKey, listStringValue); } }
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { SetBoolValue(fieldKey, dataMemberInfo.GetValue <bool>(entity)); }
public abstract void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity);
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { PlayerPrefsProvider.SetInt(fieldKey, dataMemberInfo.GetValue <int>(entity)); }
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { Enum enumValue = dataMemberInfo.GetValue <Enum>(entity); PlayerPrefsProvider.SetString(fieldKey, enumValue.ToString()); }
protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container) { this.DesignerMode = ControlDesignerModes.Simple; //var kendoTheme = new HtmlLink(); //kendoTheme.Attributes["href"] = ResolveClientUrl("EventsRegistration.Resources.KendoWidgetStyle.css"); //kendoTheme.Attributes["rel"] = "stylesheet"; //kendoTheme.Attributes["type"] = "text/css"; //this.Page.Header.Controls.Add(kendoTheme); var listOne = getCustomFields(typeof(Event), typeof(Decimal)); var listTwo = getCustomFields(typeof(Event)); this.comboMaxAtt.DataSource = listOne; this.comboCurrAtt.DataSource = listOne; this.comboProductName.DataSource = listTwo; this.comboMaxAtt.DataBind(); this.comboCurrAtt.DataBind(); this.comboProductName.DataBind(); var item = new DataMemberInfo { Name = "Title", HeaderText = "Title", ColumnTemplate = "<span>{{Title}}</span>", IsSearchField = true }; // set root node for page selector PageSelector.RootNodeID = Telerik.Sitefinity.Abstractions.SiteInitializer.FrontendRootNodeId; }
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { SetDateTimeValue(fieldKey, dataMemberInfo.GetValue <DateTime>(entity)); }
public override void SetValue(string fieldKey, DataMemberInfo dataMemberInfo, object entity) { PlayerPrefs.SetString(fieldKey, dataMemberInfo.GetValue <string>(entity)); }