{
field: 'Freight',
headerText: 'Freight',
textAlign: 'Right',
format: 'C3',
width: 90,
editType: 'numericedit',
edit: { params: { decimals: 4, showSpinButton:false, validateDecimalOnType:true, textAlign: 'Right'} },
}
{
field: 'Freight',
headerText: 'Freight',
textAlign: 'Right',
format: 'C3',
width: 190,
editType: 'numericedit',
edit: { params: { decimals: 4, showSpinButton:false, validateDecimalOnType:true, cssClass: 'numericalign'} },
},
[Style]
.numericalign .e-numerictextbox{
text-align:right;
}
|
Hi Michael,Thanks for contacting Syncfusion support.You can achieve your requirement by adding the “cssClass” property for the NumericTextBox component. Please refer to the below code example and documentation link for more information.
{field: 'Freight',headerText: 'Freight',textAlign: 'Right',format: 'C3',width: 190,editType: 'numericedit',edit: { params: { decimals: 4, showSpinButton:false, validateDecimalOnType:true, cssClass: 'numericalign'} },},[Style].numericalign .e-numerictextbox{text-align:right;}Regards,Pavithra S.