I'm setting the value of a text box on the group section Item Data Bound. The text box is formatted to currancy but this is being ignored if I set the value programmatically, is there anyway to format the value to currancy and then set the value of the textbox?
2 Answers, 1 is accepted
answered on 29 Sep 2010, 03:47 PM
Hi David ,
If you set a numeric value to a TextBox item the currency Format should be kept. Please make sure that you set the textbox to a numeric value. Locally we have set the textbox value within a group section ItemDataBound event and the currency format was kept as expected.
var procGroupHeader = (Telerik.Reporting.Processing.GroupSection)sender;
var procTextBox = (Telerik.Reporting.Processing.TextBox)procGroupHeader.Report.ChildElements.Find("textBox1", true);
procTextBox.Value = 2222;
Let us know whether the suggestion helps and if you still experience any difficulties we will appreciate if you elaborate further on your scenario and/or send us a sample report through the support system to advise you accordingly.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items