Пример #1
0
 public static bool IsNumeric(System.Type type)
 {
     if (!GridViewHelper.IsFloat(type))
     {
         return(GridViewHelper.IsInteger(type));
     }
     return(true);
 }
Пример #2
0
        public override void InitializeEditor(IInputEditor editor)
        {
            GridSpinEditor gridSpinEditor = editor as GridSpinEditor;

            if (gridSpinEditor == null)
            {
                return;
            }
            RadSpinElement editorElement = (RadSpinElement)gridSpinEditor.EditorElement;

            editorElement.DecimalPlaces     = GridViewHelper.IsInteger(this.DataType) || GridViewHelper.IsIntegerSql(this.DataType) ? 0 : this.DecimalPlaces;
            gridSpinEditor.ValueType        = this.DataType;
            editorElement.ShowUpDownButtons = this.ShowUpDownButtons;
            editorElement.Step               = this.Step;
            editorElement.MinValue           = this.Minimum;
            editorElement.MaxValue           = this.Maximum;
            editorElement.ThousandsSeparator = this.ThousandsSeparator;
        }