public void AddStringContent(String content) { HTMLText control = new HTMLText(); control.Text = content; Content.Controls.Add(control); }
public XafBootstrapStringEdit() { EncodeHtml = true; Content = new HTMLText(); Controls.Add(Content); }
protected override void OnInit(EventArgs e) { base.OnInit(e); Content = new HTMLText(); Controls.Add(Content); EncodeHtml = false; ClientSideEvents.Init = String.Format(@"function(s,e) {{ $(s.GetMainElement()).find(""#{0}"").each(function() {{ var item = $(this); item.datetimepicker({{ format: ""{2}"", language: ""{3}"" }}); item.on(""dp.hide"",function (e) {{ {1} }}); }}); }}" , PropertyName , GetCallbackScript("'NewValue=' + item.val()") , CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern.Replace("y", "Y").Replace("d", "D") , CultureInfo.CurrentCulture.IetfLanguageTag); ClientSideEvents.EndCallback = ClientSideEvents.Init; InnerRender(); }
public XafBootstrapStringEdit() { EncodeHtml = true; Content = new HTMLText(); Controls.Add(Content); }
protected override void OnInit(EventArgs e) { base.OnInit(e); Content = new HTMLText(); Controls.Add(Content); EncodeHtml = false; InnerRender(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); InitHandler(ClientID); Content = new HTMLText(); Controls.Add(Content); IsInitialized = true; InnerRender(); }
public XafBootstrapTagSelector() { Items = new XafBootstrapTagSelectorItems(); Content = new HTMLText(); AllowAddCustomValues = true; AllowSelectValues = true; ValueRendered = true; EmptyText = XAF_Bootstrap.Templates.Helpers.GetLocalizedText(@"XAF Bootstrap\Controls\XafBootstrapDropdownEdit", "EmptyText"); }
public XafBootstrapTagSelector() { Items = new XafBootstrapTagSelectorItems(); Content = new HTMLText(); AllowAddCustomValues = true; AllowSelectValues = true; ValueRendered = true; EmptyText = XAF_Bootstrap.Templates.Helpers.GetLocalizedText(@"XAF Bootstrap\Controls\XafBootstrapDropdownEdit", "EmptyText"); }
public XafBootstrapDataSelectorEdit(ASPxPropertyEditor Editor, XafApplication Application, IObjectSpace ObjectSpace, LookupEditorHelper helper) { this.Editor = Editor; ContentStart = new HTMLText(); ContentFinish = new HTMLText(); Controls.Add(ContentStart); Controls.Add(ContentFinish); Helper = helper; EmptyText = XAF_Bootstrap.Templates.Helpers.GetLocalizedText(@"XAF Bootstrap\Controls\XafBootstrapDataSelectorEdit", "EmptyText"); }
public XafBootstrapDataSelectorEdit(ASPxPropertyEditor Editor, XafApplication Application, IObjectSpace ObjectSpace, LookupEditorHelper helper) { this.Editor = Editor; ContentStart = new HTMLText(); ContentFinish = new HTMLText(); Controls.Add(ContentStart); Controls.Add(ContentFinish); Helper = helper; Buttons = new XafBootstrapButtons(); EmptyText = XAF_Bootstrap.Templates.Helpers.GetLocalizedText(@"XAF Bootstrap\Controls\XafBootstrapDataSelectorEdit", "EmptyText"); }
public XafBootstrapDropdownEdit() { Buttons = new XafBootstrapButtons(); Content = new HTMLText(); Items = new XafBootstrapDropdownItems(); EmptyText = XAF_Bootstrap.Templates.Helpers.GetLocalizedText(@"XAF Bootstrap\Controls\XafBootstrapDropdownEdit", "EmptyText"); ValueRendered = true; DropDownMaxCount = 3; SortByText = true; }
public XafBootstrapDropdownEdit() { Buttons = new XafBootstrapButtons(); Content = new HTMLText(); Items = new XafBootstrapDropdownItems(); EmptyText = XAF_Bootstrap.Templates.Helpers.GetLocalizedText(@"XAF Bootstrap\Controls\XafBootstrapDropdownEdit", "EmptyText"); ValueRendered = true; DropDownMaxCount = 3; SortByText = true; }
public void Initlialize() { actionContainers = new List <IActionContainer>(); actionObjects = new Dictionary <ActionBase, MenuActionItemBase>(); Control = new HTMLText(); Controls.Add(Control); LeftDirection = true; ItemClass = "btn btn-primary btn-sm"; Tag = "button"; CallbackName = "ObjectActionControllerCallback"; ClickScript = ""; ContainerClass = "actions"; DefaultIcon = "glyphicon-star"; }
protected override void OnInit(EventArgs e) { base.OnInit(e); Content = new HTMLText(); Controls.Add(Content); if (Helpers.RequestManager.Request.Form[ClientID + "_changed"] == "1") { Value = Helpers.RequestManager.Request.Form[ClientID]; if (EditValueChanged != null) { EditValueChanged(this, EventArgs.Empty); } } EncodeHtml = false; InnerRender(); }
public XafBootstrapDateEdit() { Content = new HTMLText(); Controls.Add(Content); }
protected override void OnInit(EventArgs e) { base.OnInit(e); InitHandler(ClientID); Content = new HTMLText(); Controls.Add(Content); IsInitialized = true; InnerRender(); }
public XafBootstrapButtons() { Content = new HTMLText(); Buttons = new List<XafBootstrapButton>(); Controls.Add(Content); }
public XafBootstrapDateEdit() { Content = new HTMLText(); Controls.Add(Content); }
public XafBootstrapNumericEdit() { EncodeHtml = true; Content = new HTMLText(); }
public XafBootstrapNumericEdit() { EncodeHtml = true; Content = new HTMLText(); }
public void Initlialize() { actionContainers = new List<IActionContainer>(); actionObjects = new Dictionary<ActionBase, MenuActionItemBase>(); Control = new HTMLText(); Controls.Add(Control); LeftDirection = true; ItemClass = "btn btn-primary btn-sm"; Tag = "button"; CallbackName = "ObjectActionControllerCallback"; ClickScript = ""; ContainerClass = "actions"; DefaultIcon = "glyphicon-star"; }
protected override void OnInit(EventArgs e) { base.OnInit(e); Content = new HTMLText(); Controls.Add(Content); EncodeHtml = false; InnerRender(); }
private void InitCollector(Boolean isEditing) { Collector = new CollectorControl(); CallbackHandler handler = new CallbackHandler("ThemeConfigurationCallbackHandler"); handler.OnCallback += handler_OnCallback; var popup = new HTMLText(String.Format(@" <div class=""modal fade"" id=""popupThemeLoader""> <div class=""modal-dialog modal-lg""> <div class=""modal-content""> <div class=""modal-header""> <button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close""><span aria-hidden=""true"">×</span></button> <h4 class=""modal-title"">Theme CSS uploading</h4> </div> <div class=""modal-body""> <div class=""form-group""> <label for=""themeName"">Theme name</label> <input name=""themeName"" type=""text"" class=""form-control"" id=""themeName"" placeholder=""Name of destination theme folder""> </div> <div class=""form-group""> <label for=""bootstrapCSS"">Bootstrap CSS</label> <textarea name=""bootstrapCSS"" class=""form-control"" rows=""20"" id=""bootstrapCSS"" placeholder=""Main Bootstrap CSS content""></textarea> </div> </div> <div class=""modal-footer""> <button type=""button"" class=""btn btn-default pull-right"" data-dismiss=""modal"">Cancel</button> <button type=""button"" class=""btn btn-default pull-right"" data-dismiss=""modal"" onclick="" startProgress(); setTimeout(function() {{ {0} }}, 1000);"">OK</button> </div> </div> </div> </div> ", handler.GetScript("'save'"))); var popupButton = new HTMLText(@"<button class=""btn btn-default btn-sm"" type=""button"" onclick=""$('#popupThemeLoader').modal();""><span class=""glyphicon glyphicon-upload""></span> Upload</button>"); Collector.Controls.Add(Edit); if (isEditing) { Collector.Controls.Add(popup); Collector.Controls.Add(popupButton); } }
public XafBootstrapButtons() { Content = new HTMLText(); Buttons = new List <XafBootstrapButton>(); Controls.Add(Content); }