
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch
asked on 31 Jul 2019, 06:51 AM
I have a grid with inline set to true.
my bound data is decorated with [UIHint("Integer")].
Everything is working great, the user clicks on the cell and teh numerictextbox comes up … left aligned.
How to right align this thing?
I have the column right aligned via htmlattributes, but that has no effect on the numeric textbox.
Thanks … Ed
5 Answers, 1 is accepted
0
Hello Randy,
You can use CSS to achieve this requirement:
https://dojo.telerik.com/EFOwElIb
If you have different configuration, could you modify the dojo solution and send it back to us so we can provide the proper CSS rule?
Regards,
Eyup
Progress Telerik
You can use CSS to achieve this requirement:
https://dojo.telerik.com/EFOwElIb
If you have different configuration, could you modify the dojo solution and send it back to us so we can provide the proper CSS rule?
Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0

Randy Hompesch
Top achievements
Rank 1
answered on 01 Aug 2019, 05:52 AM
According to the forum tracker, an admin responded to my message, but it's not showing.
Thanks … ED
0
Hi Randy,
Yes, you are correct. It is strange that the reply is not visible. I will copy the response here:
"You can use CSS to achieve this requirement:
https://dojo.telerik.com/EFOwElIb
If you have different configuration, could you modify the dojo solution and send it back to us so we can provide the proper CSS rule?"
Regards,
Eyup
Progress Telerik
Yes, you are correct. It is strange that the reply is not visible. I will copy the response here:
"You can use CSS to achieve this requirement:
https://dojo.telerik.com/EFOwElIb
If you have different configuration, could you modify the dojo solution and send it back to us so we can provide the proper CSS rule?"
Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
1

Randy Hompesch
Top achievements
Rank 1
answered on 01 Aug 2019, 08:30 AM
Interesting. Your solution works as long as it's set to InLine editing. If you choose InCell. It does not.
At lease I now know the secret sauce to sprinkle on it. I would argue that the default alignment for a numeric textbox should be right anyhow. Who wants it left???
Thanks … Ed
-1
Accepted
Hi Ed,
I'm glad the provided sample was helpful and gave the required hints to resolve the issue.
As for the default alignment, I think that it is expected the numbers to be left aligned because Latin is a left-to-right typing language. It is a generally expected standard that typing, whether letters or numbers begin in this order in this Culture. You can test it with a regular <input type='number'>. Other languages, Arabic for instance, have a right-to-left typing order.
But of course this is up to the preference of the individual. That's why there are so many convenient tools to change the alignment. In some tabular or financial reports it might be more reasonable to have the numbers right aligned.
Regards,
Eyup
Progress Telerik
I'm glad the provided sample was helpful and gave the required hints to resolve the issue.
As for the default alignment, I think that it is expected the numbers to be left aligned because Latin is a left-to-right typing language. It is a generally expected standard that typing, whether letters or numbers begin in this order in this Culture. You can test it with a regular <input type='number'>. Other languages, Arabic for instance, have a right-to-left typing order.
But of course this is up to the preference of the individual. That's why there are so many convenient tools to change the alignment. In some tabular or financial reports it might be more reasonable to have the numbers right aligned.
Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.