Пример #1
0
 internal static bool IsNumericSql(System.Type type)
 {
     if (!GridViewHelper.IsFloatSql(type))
     {
         return(GridViewHelper.IsIntegerSql(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;
        }