Exemplo n.º 1
0
 private void IntegerFormatter()
 {
     this.formatter = GridSetting.Formatter.integer;
     this.formatoptions = new GridSetting.ColumnFormatoptions
     {
         thousandsSeparator = ",",
         defaulValue = "0"
     };
 }
Exemplo n.º 2
0
 private void NumberFormatter()
 {
     this.formatter = GridSetting.Formatter.number;
     this.formatoptions = new GridSetting.ColumnFormatoptions
     {
         decimalSeparator = ".",
         thousandsSeparator = ",",
         decimalPlaces = 2,
         defaulValue = "0.00"
     };
 }
Exemplo n.º 3
0
 /// <summary>
 /// Formatter
 /// </summary>
 /// <param name="column"></param>
 /// <returns></returns>
 private void CurrencyFormatter()
 {
     this.formatter = GridSetting.Formatter.currency;
     this.formatoptions = new GridSetting.ColumnFormatoptions
     {
         decimalSeparator = ".",
         thousandsSeparator = ",",
         suffix = "$",
         decimalPlaces = 2,
         defaulValue = "0.00"
     };
 }
Exemplo n.º 4
0
 public Column CheckBoxEditor(string val, string defaultValue = null)
 {
     this.formatter = GridSetting.Formatter.checkbox;
     ColumnFormatoptions colFormatOpt = new ColumnFormatoptions();
     colFormatOpt.disabled = false;
     this.formatoptions = colFormatOpt;
     this.edittype = GridSetting.ColumnEditorType.checkbox;
     this.editoptions = new GridSetting.ColumnEditOption
     {
         value = val,
         defaultValue = defaultValue
     };
     return this;
 }