This is a migrated thread and some comments may be shown as answers.

[Solved] CurrencyTextBox()

0 Answers 17 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Renu
Top achievements
Rank 1
Renu asked on 07 Jul 2011, 12:23 PM
We are using 

@( Html.Telerik().CurrencyTextBox().Name(

 

HtmlIds.AwardAmountTextBox)

.MinValue(Model.AwardAmount <= Model.DefaultAwardAmount ?Model.AwardAmount : Model.DefaultAwardAmount) 
.MaxValuel(Model.MaximumAwardAmount < Model.RemainingBudget ? Model.MaximumAwardAmount : Model.RemainingBudget)
.Value(Model.AwardAmount != Decimal.Zero ? Model.AwardAmount: Model.DefaultAwardAmount)
.DecimalDigits(2)

.CurrencySymbol("£")
.Spinners(true)

Issue: if you enter amount £225.225 , gets rounded to 225.22. IE didn't have problem(did round to 225.23) but all other browser rounding didn't work.  
I also want to know what type of rounding is used (if used), midpointrounding.ToEven or midpointrounding.AwayFromZero.
 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tags
ComboBox
Asked by
Renu
Top achievements
Rank 1
Share this question
or