Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147973 | Sep 30,2019 12:13 PM UTC | Oct 3,2019 10:59 AM UTC | Vue | 5 |
![]() |
Tags: Data Grid |
{
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.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.