How to set the grid cell edit type numericEdit not allow negative numbers

how can make the grid cell numericEdit not allow negative numbers?

<GridComponent dataSource={data}>
            <ColumnsDirective>
                <ColumnDirective field='price' width='100' editType='numericEdit'  />
            </ColumnsDirective>
        </GridComponent>

2 Replies

DE developer April 15, 2020 05:51 AM UTC

I find the solution which is set the params

 edit={integerParams} />

const integerParams = {
  params: {
    decimals: 0,
    format: "N",
    min: 0,
    validateDecimalOnType: true,
  },
};



BS Balaji Sekar Syncfusion Team April 16, 2020 04:34 AM UTC

Hi Developer, 
  
We glad to that your issue has been fixed.  
  
Please get back to us if you require further other assistance from us. 
  
Regards, 
Balaji Sekar. 


Loader.
Up arrow icon