public override void WriteInitializationScript(System.IO.TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tTextBox", writer); objectWriter.Start(); objectWriter.AppendObject("val", Value); objectWriter.Append("step", IncrementStep); objectWriter.AppendObject("minValue", MinValue); objectWriter.AppendObject("maxValue", MaxValue); objectWriter.Append("symbol", PercentSymbol); objectWriter.Append("digits", DecimalDigits); objectWriter.Append("separator", DecimalSeparator); objectWriter.AppendNullableString("groupSeparator", NumberGroupSeparator); objectWriter.Append("groupSize", NumberGroupSize); objectWriter.Append("positive", PositivePatternIndex); objectWriter.Append("negative", NegativePatternIndex); objectWriter.Append("text", EmptyMessage); objectWriter.Append("type", "percent"); ClientEvents.SerializeTo(objectWriter); objectWriter.Complete(); base.WriteInitializationScript(writer); }
public override void WriteInitializationScript(System.IO.TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tTextBox", writer); objectWriter.Start(); objectWriter.AppendObject("val", this.Value); objectWriter.AppendObject("step", this.IncrementStep); objectWriter.AppendObject("minValue", this.MinValue); objectWriter.AppendObject("maxValue", this.MaxValue); objectWriter.Append("digits", this.DecimalDigits); objectWriter.Append("separator", this.DecimalSeparator); objectWriter.AppendNullableString("groupSeparator", this.NumberGroupSeparator); objectWriter.Append("groupSize", this.NumberGroupSize); objectWriter.Append("negative", this.NegativePatternIndex); objectWriter.Append("text", this.EmptyMessage); objectWriter.Append("type", "numeric"); var inputAttributes = new Dictionary <string, string>(); this.InputHtmlAttributes.Each(x => inputAttributes.Add(x.Key, x.Value.ToString())); objectWriter.AppendObject("inputAttributes", inputAttributes); ClientEvents.SerializeTo(objectWriter); objectWriter.Complete(); base.WriteInitializationScript(writer); }
public override void WriteInitializationScript(System.IO.TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tTextBox", writer); objectWriter.Start(); objectWriter.AppendObject("val", this.Value); objectWriter.Append("step", this.IncrementStep); objectWriter.AppendObject("minValue", this.MinValue); objectWriter.AppendObject("maxValue", this.MaxValue); objectWriter.Append("digits", 0); objectWriter.AppendNullableString("groupSeparator", this.NumberGroupSeparator); objectWriter.Append("groupSize", this.NumberGroupSize); objectWriter.Append("negative", this.NegativePatternIndex); objectWriter.Append("text", this.EmptyMessage); objectWriter.Append("type", "numeric"); ClientEvents.SerializeTo(objectWriter); objectWriter.Complete(); base.WriteInitializationScript(writer); }