Inline Form NumericEdit edit type

Hi,

Is it possible to set a default value and a number range for the NumericEdit type?

<e-column field="Sort" header-text="Display Order" edit-type="NumericEdit"></e-column>    


Thanks


1 Reply

MS Mani Sankar Durai Syncfusion Team December 7, 2017 11:39 AM UTC

Hi Mahindra, 

Thanks for contacting Syncfusion support.  

We have checked your query and found that you would like to have default value for the column along with numeric edit options within a certain range. So we suggest you to set the value to the defaultValue property of columns in grid and also to set the certain range for the numeric edit using numeric-edit-options property of columns in grid. 
Please refer the below code example 
<ej-grid id="clientGrid" allow-paging="true" datasource="ViewBag.data"> 
... 
                <e-columns> 
... 
                    <e-column field="Freight" header-text="Freight"  numeric-edit-options="@new EditorProperties(){ MinValue = 10, MaxValue=1000}"  default-value="32" edit-type="NumericEdit"> 
                    
                    </e-column> 
                    ... 
                </e-columns> 
            </ej-grid> 

Using MinValue and MaxValue property of numeric text box we can set the range to the numeric-edit-options.  
Please refer the documentation link 


Please let us know if you need further assistance.  

Regards, 
Manisankar Durai.  


Loader.
Up arrow icon