public override string GetBareHtml() { return(@" <select id='@ebsid@' ui-inp class='selectpicker' title='@PlaceHolder@' @selOpts@ @MaxLimit@ @multiple@ @IsSearchable@ name='@ebsid@' @bootStrapStyle@ data-ebtype='@data-ebtype@' style='width: 100%;'> @-sel-@ @options@ </select>" .Replace("@ebsid@", String.IsNullOrEmpty(this.EbSid_CtxId) ? "@ebsid@" : this.EbSid_CtxId) .Replace("@name@", this.Name) .Replace("@HelpText@", this.HelpText) .Replace("@multiple@", this.MultiSelect ? "multiple" : "") .Replace("@MaxLimit@", MultiSelect ? "data-max-options='" + (!MultiSelect ? 1 : MaxLimit) + "'" : string.Empty) .Replace("@IsSearchable@", MultiSelect ? "data-live-search='" + this.IsSearchable + "'" : string.Empty) .Replace("@selOpts@", MultiSelect ? "data-actions-box='true'" : string.Empty) .Replace("@bootStrapStyle@", "data-style='btn-" + this.BootStrapStyle.ToString() + "'") .Replace("@PlaceHolder@", (PlaceHolder ?? string.Empty)) .Replace("@options@", this.OptionHtml) .Replace("@-sel-@", this.MultiSelect ? string.Empty : "<option selected value='-1' style='color: #6f6f6f;'>" + (PlaceHolder.IsNullOrEmpty() || PlaceHolder.Trim() == string.Empty ? "--": PlaceHolder) + "</option>") .Replace("@data-ebtype@", "16")); }