/// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     writer.AddPrevalueRow("XML File Path:", "Specify the path to the XML file.", this.PathPickerXmlFilePath);
     writer.AddPrevalueRow("XPath Expression:", "The XPath expression to select the nodes used in the XML file.", this.TextBoxXPathExpression);
     writer.AddPrevalueRow("Text column:", "The name of the field used for the item's display text.", this.TextBoxTextColumn);
     writer.AddPrevalueRow("Value column:", "The name of the field used for the item's value.", this.TextBoxValueColumn);
 }
 /// <summary>
 /// Replaces the base class writer and instead uses the shared uComponents extension method, to inject consistant markup
 /// </summary>
 /// <param name="writer"></param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     writer.AddPrevalueRow("Database Type", this.dbTypeDropDownList);
     writer.AddPrevalueRow("XPath Expression", this.xPathTextBox, this.xPathRequiredFieldValidator, this.xPathCustomValidator);
     writer.AddPrevalueRow("Storage Type", this.storageTypeRadioButtonList);
     writer.AddPrevalueRow("Values", this.valueTypeDropDownList);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueRow("Directory:", "The directory to list the files from, relative to the root of the website.", this.TextBoxDirectory);
     writer.AddPrevalueRow("Search Pattern:", "The pattern to match the files. e.g. <code>*.css</code>", this.TextBoxSearchPattern);
     writer.AddPrevalueRow("Use Directories:", "Select this option to display sub-directories instead of files.", this.CheckBoxUseDirectories);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueRow("Character Limit:", this.CharLimitValue);
     writer.AddPrevalueRow("TextBox Mode:", this.TextBoxModeList);
     writer.AddPrevalueRow("Enforce Character Limit:", this.CheckBoxEnforceCharacterLimit);
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // add property fields

            writer.OpenPrevalueGroup("General settings");
            writer.AddPrevalueRow("Editor width:", this.TextBoxWidth);
            writer.AddPrevalueRow("Editor height:", this.TextBoxHeight);
            writer.AddPrevalueRow("Output Format:", this.OutputFormats);
            writer.ClosePrevalueGroup();

            writer.OpenPrevalueGroup("Markdown");
            writer.AddPrevalueRow("Transform options:"
                                  , this.SafeMode
                                  , this.ExtraMode
                                  , this.MarkdownInHtml
                                  , this.AutoHeadingIDs
                                  , this.NewWindowForExternalLinks
                                  , this.NewWindowForLocalLinks
                                  , this.NoFollowLinks);
            writer.ClosePrevalueGroup();

            writer.OpenPrevalueGroup("EditorUI");
            writer.AddPrevalueRow("Enable EditorUI:", this.EnableEditorUI);
            writer.AddPrevalueRow("Options:"
                                  , this.DisableAutoIndent
                                  , this.DisableTabHandling);
            writer.ClosePrevalueGroup();

            writer.OpenPrevalueGroup("EditorUI preview");
            writer.AddPrevalueRow("Show preview:", this.ShowPreview);
            writer.AddPrevalueRow("CSS style", this.ShowPreviewWithDefaultCssFile);
            writer.AddPrevalueRow("Add ClassName", "it is usefull to customize preview style with custom css", this.ShowPreviewWithCustomClassName);
            writer.AddPrevalueRow("Add custom CSS", "custom css file to customize preview style; must be valid href value; example: \"/css/umbEditor/mdd_preview.css\"", this.ShowPreviewWithCustomCssFile);
            writer.ClosePrevalueGroup();
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueRow("Show label?", this.ShowLabel);
     writer.AddPrevalueRow("Macro Editor", this.MacroEditor);
     writer.AddPrevalueRow(string.Empty, "Please note: If a document is unpublished or is used on a non-content section (e.g. media, member or custom), then the root content node (usually your homepage) will be used as the context.", this.Styles);
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // add property fields
            writer.AddPrevalueRow("Text to display", this.Notes);
            writer.AddPrevalueRow("Show label?", this.ShowLabel);

            // write out the JavaScript to initialise TinyMCE
            var javascript = string.Concat(@"<script type='text/javascript'> 
tinyMCE.init({
    mode:'exact',
    theme:'advanced',
    umbraco_path:'", IOHelper.ResolveUrl(SystemDirectories.Umbraco), @"',
    elements:'", this.Notes.ClientID, @"',
    language:'en',
    encoding:'xml',
    theme_advanced_buttons1 : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,formatselect,bullist,numlist,|,outdent,indent,|,link,unlink,anchor,image,|,code,preview',
    theme_advanced_buttons2 : '',
    theme_advanced_buttons3 : '',
    theme_advanced_toolbar_location : 'top',
    theme_advanced_toolbar_align : 'left',
    theme_advanced_resizing : true
});
</script>");

            writer.WriteLine(javascript);
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Replaces the base class writer and instead uses the shared uComponents extension method, to inject consistant markup
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     writer.AddPrevalueRow("Image Property Alias", "(recursive) property to use as source for image", this.imagePropertyAliasPicker);
     writer.AddPrevalueRow("Width", "width in px (0 = calculate from image)", this.widthTextBox);
     writer.AddPrevalueRow("Height", "height in px (0 = calculate from image)", this.heightTextBox);
     writer.AddPrevalueRow("Show Neighbours", "show other points using this datatype, with the same image", this.showNeighboursCheckBox);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Amazon S3 and Cloud Front API Settings");
     writer.AddPrevalueRow("", "Add your Amazon account information here.");
     writer.AddPrevalueRow("Access Key:", this.txtAccessKey);
     writer.AddPrevalueRow("Secret Key:", this.txtSecretKey);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueRow("Url to JSON data", "Url string to JSON data", this.UrlTextBox);
     writer.AddPrevalueRow("jQuery Expression", "jQuery Expression", this.ExpressionTextBox);
     writer.AddPrevalueRow("The key data for dropdown list", "The key data for dropdown list", this.KeyTextBox);
     writer.AddPrevalueRow("The value data for dropdown list", "The key data for dropdown list", this.ValueTextbox);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here");
     writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey);
     writer.AddPrevalueRow("Show Meta Data:", this.chkShowMetaData);
 }
 /// <summary>
 /// Replaces the base class writer and instead uses the shared uComponents extension method, to inject consistant markup
 /// </summary>
 /// <param name="writer"></param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     writer.AddPrevalueRow("XPath Expression", @"can use the tokens <strong>$ancestorOrSelf</strong>, <strong>$parentPage</strong> and <strong>$currentPage</strong>, eg.<br />
                                                 <br />                                            
                                                 all siblings: $parentPage//*[@id != $currentPage/@id] <br />                                                        
                                                 ", this.xPathTextBox, this.xPathRequiredFieldValidator, this.xPathCustomValidator);
     writer.AddPrevalueRow("Value", this.valueTypeDropDownList);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Azure CDN API Settings");
     writer.AddPrevalueRow("", "Add your Azure account information here.");
     writer.AddPrevalueRow("Account Name:", this.txtAccountName);
     writer.AddPrevalueRow("Key:", this.txtKey);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueRow("'On' label", "The label text for the true (on) state", this.OnText);
     writer.AddPrevalueRow("'On' background", "The background-color for the true (on) state", this.OnBackgroundColor);
     writer.AddPrevalueRow("'Off' label", "The label text for the false (off) state", this.OffText);
     writer.AddPrevalueRow("'Off' background", "The background-color for the false (off) state", this.OffBackgroundColor);
     writer.AddPrevalueRow("Default state", "The initial position for the ToggleBox on the edit page, either 'on' or 'off'", this.DefaultValue);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here");
     writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey);
     writer.AddPrevalueHeading("Container Settings", "Select your default container from the dropdown");
     writer.AddPrevalueRow("Default Container <em>(optional)</em>:", this.ddlDefaultContainer);
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("<img src='" + Page.ClientScript.GetWebResourceUrl(typeof(IRImagePickerDataEditor), "Our.Umbraco.IRImagePicker.Resources.Images.ir_logo.png") + "' alt='Image Resizer' style='width:200px;margin:0 0 5px 130px;' />");
     writer.AddPrevalueRow("Image Dimensions", "Enter the width and height for the selected image.", txtWidth, new LiteralControl(" x "), txtHeight);
     writer.AddPrevalueRow("Thumb Width", "Set the width of the thumbnail to show in the editor.", txtThumbWidth);
     writer.AddPrevalueRow("Auto Launch Croppper", "Select whether to auto launch the cropper after an image is picked.", chkAutoLaunchCropper);
     writer.AddPrevalueRow("Data format", "Select the data format in which to store the value of this data type in.<br />XML if you intend to work with it in XSLT or JSON if you intend to work with it via Razor or C#.", rdoDataFormat);
 }
Ejemplo n.º 17
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.AddPrevalueRow("Add prevalue:", this.TextControl, this.RequiredControl);

            // get the existing prevalues
            var prevalues = PreValues.GetPreValues(this.m_DataType.DataTypeDefinitionId).GetValueList();

            // check if there are any prevalues
            if (prevalues != null && prevalues.Count > 0)
            {
                // create placeholder DIV tag
                var placeholder = new HtmlGenericControl("div");

                // loop through each of the prevalues
                foreach (PreValue value in prevalues)
                {
                    // if the value is empty, then remove it
                    if (string.IsNullOrEmpty(value.Value))
                    {
                        value.Delete();
                        break;
                    }

                    // create row
                    var row = new HtmlGenericControl("div");
                    row.Attributes.Add("class", "row clearfix");

                    // create the label
                    var label = new HtmlGenericControl("div");
                    label.Attributes.Add("class", "label");
                    label.InnerText = value.Value;

                    // create the field
                    var field = new HtmlGenericControl("div");
                    field.Attributes.Add("class", "field");

                    // create the anchor
                    var anchor = new System.Web.UI.HtmlControls.HtmlAnchor();
                    anchor.HRef      = string.Concat("?id=", this.m_DataType.DataTypeDefinitionId, "&delete=", value.Id);
                    anchor.InnerText = ui.Text("delete");
                    anchor.Attributes.Add("onclick", "javascript:return confirm('Are you sure you want to delete this value?');");

                    // add the anchor to the field
                    field.Controls.Add(anchor);

                    // add the label and field to the row
                    row.Controls.Add(label);
                    row.Controls.Add(field);

                    // add the row to the placeholder
                    placeholder.Controls.Add(row);
                }

                // render the placeholder
                writer.AddPrevalueRow("Values:", placeholder);
            }
        }
Ejemplo n.º 18
0
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // add data fields
            writer.AddPrevalueRow("Save Video Data:", "Enabling this option, the data-type to store the raw XML video data from YouTube. Disabling it will only store the video id.", this.cbSaveVideoData);

            // add preview fields
            writer.AddPrevalueHeading("Preview Options");
            writer.AddPrevalueRow("Enable preview:", this.cbEnablePreview);
            writer.AddPrevalueRow("Preview height:", this.txtPreviewHeight);
            writer.AddPrevalueRow("Preview width:", this.txtPreviewWidth);
        }
Ejemplo n.º 19
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.AddPrevalueHeading("Columns");
            writer.AddPrevalueRow("Show Column Labels?", "Enter a label for each column; you may also use dictionary item syntax (e.g. <code>[#dictionaryItem]</code>). (Optional - blank labels are acceptable)", this.CheckBoxShowColumnLabels);
            writer.AddPrevalueRow("Labels:", this.MtcContainer);

            writer.AddPrevalueHeading("Rows");
            writer.AddPrevalueRow("Minimum:", "Minimum number of rows to display.", this.TextBoxMinimumRows);
            writer.AddPrevalueRow("Maximum:", "Maximum number of rows to display. Use -1 for unlimited rows.", this.TextBoxMaximumRows);
            writer.AddPrevalueRow("Disable sorting?", "Disables the ability to sort the rows.", this.CheckBoxDisableSorting);
        }
 /// <summary>
 ///   Sends server control content to a provided <see cref = "T:System.Web.UI.HtmlTextWriter" /> object,
 ///   which writes the content to be rendered on the client.
 /// </summary>
 /// <param name = "writer">The <see cref = "T:System.Web.UI.HtmlTextWriter" /> object that receives the server control content.</param>
 protected override void Render(HtmlTextWriter writer)
 {
     writer.AddAttribute(HtmlTextWriterAttribute.Class, "imageResizerPreValues");
     writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'imageResizerPreValues'
     writer.AddPrevalueHeading("Image Resizer");
     writer.AddPrevalueRow("Property Alias", "Alias of image property  (eg. 'umbracoFile'):", PropertyAliasTextBox);
     writer.AddPrevalueRow("Width", "Maximum width of generated image", MaxWidthTextBox);
     writer.AddPrevalueRow("Height", "Maximum height of generated image", MaxHeightTextBox);
     writer.AddPrevalueRow("", "<p>Aspect ratio is maintained during image resizing.</br>Landscape will restrict to Width<br/>Portrait will restrict to Height</p>");
     writer.RenderEndTag(); // end 'imageResizerPreValues'
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     // add property fields
     writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here");
     writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey);
     writer.AddPrevalueRow("Show File Meta Data:", this.chkShowMetaData);
     writer.AddPrevalueHeading("Container Settings", "Enter the property alias of the container datatype or select your default container from the dropdown");
     writer.AddPrevalueRow("Default Container Property Alias:", this.txtDefaultAlias);
     writer.AddPrevalueRow("Default Container:", this.ddlDefaultContainer);
 }
Ejemplo n.º 22
0
        /// <summary>
        /// Sends server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter"/> object, which writes the content to be rendered on the client.
        /// </summary>
        /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"/> object that receives the server control content.</param>
        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Class, Constants.ApplicationName);
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //// start 'uComponents'

            // add property fields
            writer.AddPrevalueRow("Properties to search on :", "Please select properties to search on ", this._propertiesToSearchOn);
            writer.AddPrevalueRow("Maximum number of results to return :", "", this._txtMaxResults);
            writer.AddPrevalueRow("Index to search on", "Please select umbraco index to search, please note this will not work with media index", this._indexToSearch);
            writer.RenderEndTag(); //// end 'uComponents'
        }
Ejemplo n.º 23
0
        /// <summary>
        /// Sends server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter"/> object, which writes the content to be rendered on the client.
        /// </summary>
        /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"/> object that receives the server control content.</param>
        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Class, Constants.ApplicationName);
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //// start 'uComponents'

            // add property fields
            writer.AddPrevalueRow("Textbox width:", this.WidthTextBox);
            writer.AddPrevalueRow("Textbox style:", this.StyleTextBox);
            writer.AddPrevalueRow("Preview:", "Hit the 'Save' button to view preview", this.PreviewTextBox);

            writer.RenderEndTag(); //// end 'uComponents'
        }
        /// <summary>
        /// Replaces the base class writer and instead uses the shared uComponents extension method, to inject consistant markup
        /// </summary>
        /// <param name="writer"></param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.AddPrevalueRow("MultiPicker Alias", this.multiPickerPropertyAliasPicker, this.multiPickerPropertyAliasRequiredFieldValidator);
            writer.AddPrevalueRow("Relation Type", this.relationTypeDropDownList, this.relationTypeRequiredFieldValidator);

            // Only show this field if selected RelationType is of Parent to Child
            if (this.RelationType != null)
            {
                if (!this.RelationType.Dual)
                {
                    writer.AddPrevalueRow("Reverse Indexing", this.reverseIndexingCheckBox);
                }
            }

            writer.AddPrevalueRow("Hide Data Editor", this.hideDataEditorCheckBox);
        }
Ejemplo n.º 25
0
        /// <summary>
        /// Replaces the base class writer and instead uses the shared uComponents extension method, to inject consistant markup
        /// </summary>
        /// <param name="writer"></param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            writer.AddPrevalueRow(
                "Type",
                "the xml schema to query",
                this.typeRadioButtonList);

            writer.AddPrevalueRow(
                "XPath Expression",
                "can use the tokens <strong>$ancestorOrSelf</strong>, <strong>$parentPage</strong> and <strong>$currentPage</strong>",
                this.xPathTextBox,
                this.xPathRequiredFieldValidator,
                this.xPathCustomValidator);

            writer.AddPrevalueRow("Storage Type", this.storageTypeRadioButtonList);
            writer.AddPrevalueRow("Values", this.valueTypeDropDownList);
        }
Ejemplo n.º 26
0
 /// <summary>
 /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
 /// </summary>
 /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     writer.AddPrevalueRow("XPath Start Node", "first matched node will be the root of the tree", this.treeStartNodeXPathTextBox, this.treeStartNodeXPathRequiredFieldValidator, this.treeStartNodeXPathCustomValidator);
     writer.AddPrevalueRow("XPath Filter", "not required - only matched nodes will have checkboxes", this.selectableTreeNodesXPathTextBox, this.selectableTreeNodesXPathCustomValidator);
     writer.AddPrevalueRow("Min Selection", "0 = no limit", this.minSelectionTextBox);
     writer.AddPrevalueRow("Max Selection", "0 = no limit", this.maxSelectionTextBox);
     writer.AddPrevalueRow("Auto Selection", "ensure a top down or bottom up tree selection", this.autoSelectionDropDownList);
     writer.AddPrevalueRow("Show Tree Icons", "(doesn't yet work with sprites)", this.showTreeIconsCheckBox);
     writer.AddPrevalueRow("Expand Options", "on load, select whether to collapse all, expand all or only selected branches.", this.selectExpandOptionDropDownList);
     writer.AddPrevalueRow("Output Format", this.selectOutputFormat);
 }
Ejemplo n.º 27
0
        /// <summary>
        /// Sends server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter"/> object, which writes the content to be rendered on the client.
        /// </summary>
        /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"/> object that receives the server control content.</param>
        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Class, Constants.ApplicationName);
            writer.RenderBeginTag(HtmlTextWriterTag.Div);             //// start 'uComponents'

            // add property fields
            writer.AddPrevalueRow("Property Alias:", "Please select the property alias of field to check for uniqueness.", this.PropertiesTextBox);

            writer.RenderEndTag();             //// end 'uComponents'
        }
 /// <summary>
 /// Replaces the base class writer and instead uses the shared uComponents extension method, to inject consistant markup
 /// </summary>
 /// <param name="writer"></param>
 protected override void RenderContents(HtmlTextWriter writer)
 {
     writer.AddPrevalueRow("SQL Expression", @" expects a result set with two fields : 'Text' and 'Value' - can include the tokens : @currentId and @autoCompleteText", this.sqlTextBox, this.sqlRequiredFieldValidator, this.sqlCustomValidator);
     writer.AddPrevalueRow("Connection String", "add items to the web.config &lt;connectionStrings /&gt; section to list here", this.connectionStringDropDownList);
     writer.AddPrevalueRow("Min Length", "number of chars in the autocomplete text box before querying for data", this.minLengthDropDownList);
     writer.AddPrevalueRow("Max Suggestions", "max number of items to return as autocomplete suggestions - 0 means no limit", this.maxSuggestionsTextBox);
     writer.AddPrevalueRow("Min Items", "number of items that must be selected", this.minItemsTextBox);
     writer.AddPrevalueRow("Max Items", "number of items that can be selected - 0 means no limit", this.maxItemsTextBox);
     writer.AddPrevalueRow("Allow Duplicates", "when checked, duplicate values can be selected", this.allowDuplicatesCheckBox);
 }
Ejemplo n.º 29
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // add property fields
            writer.AddPrevalueRow("Height:", this.TextBoxHeight);
            writer.AddPrevalueRow("Width:", this.TextBoxWidth);
            writer.AddPrevalueRow("Output Format:", this.OutputFormats);
            writer.AddPrevalueRow("Enable WMD editor:", "The WMD editor is powered by <a href='http://tstone.github.com/jquery-markedit/' target='_blank'>MarkEdit</a> by Titus Stone.", this.EnableWmd);

            // configuration options - http://wiki.github.com/tstone/jquery-markedit/configuration-options
            writer.AddPrevalueRow(string.Empty, "The following options are only applicable when the WMD editor is enabled.");
            writer.AddPrevalueRow("Preview:", this.PreviewOptions);
            writer.AddPrevalueRow("Enable history:", "This enables/disables the undo/redo editing history for the WMD editor.", this.EnableHistory);
            writer.AddPrevalueRow("Help URL:", "Override the help URL for the WMD editor.", this.TextBoxHelpUrl);
        }
Ejemplo n.º 30
0
        /// <summary>
        /// Renders the contents of the control to the specified writer. This method is used primarily by control developers.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param>
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // add property fields
            writer.AddPrevalueRow("Height:", this.TextBoxHeight);
            writer.AddPrevalueRow("Width:", this.TextBoxWidth);
            writer.AddPrevalueRow("CSS:", "You can use any inline CSS to style the Elastic TextBox.<br/>Note: When using the 'font-size' property, for best results, use 'px' values, ('em' and '%' values can render incorrectly).", this.TextBoxCss);

            // wrapper for the Elastic TextBox preview
            HtmlGenericControl div = new HtmlGenericControl("div");

            div.Attributes.Add("class", "ElasticTextBox");
            div.Controls.Add(this.Preview);
            writer.AddPrevalueRow("Preview:", div);

            // add jquery window load event to create the js elastic
            var javascriptDefaults    = string.Format("var dimensions = ';height:{0}px;width:{1}px;'", this.TextBoxHeight.Text, this.TextBoxWidth.Text);
            var javascriptLoadElastic = string.Format("jQuery('#{0}').elastic();", this.Preview.ClientID);
            var javascriptLivePreview = string.Format("jQuery('#{1}').keyup(function(){{ jQuery('#{0}').attr('style', jQuery(this).val() + dimensions).elastic(); }});", this.Preview.ClientID, this.TextBoxCss.ClientID);
            var javascript            = string.Concat("<script type='text/javascript'>jQuery(window).load(function(){", javascriptDefaults, Environment.NewLine, javascriptLoadElastic, Environment.NewLine, javascriptLivePreview, "});</script>");

            writer.WriteLine(javascript);
        }