I like to assign a FormatString to the CalculatorDropDown like Columns.FormatString in GridView-Control.
Example: A value 2.17 should be formated 2.17 m² to display the value in squaremeters.
Is there any property to set or any other solution to format the value in the Calculator-Control?
5 Answers, 1 is accepted
Thank you for writing.
RadCalculatorEditorContentElement is a derivative of the RadTextBoxElement which hosts the standard MS TextBox. It does not offer formatting out of the box. Additionally, the RadCalculatorDropDownElement.Value property accepts decimal values. Hence, in order to force some custom format to the calculator, you can use a RadMaskedEditBox and add the arrow button that shows the calculator popup. Here is a sample implementation:
Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify it on a way which suits your requirement best.
I hope this information helps. Should you have further questions, I would be glad to help.
that's a good idea.
I will embed your snippet into an usercontrol.
Thanks a lot
You can eliminate the spacing by adjusting the margin/padding as follows:
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
very nice, thank you :-)