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

Display custom text in place of True/False for boolean paramter

3 Answers 356 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL asked on 01 Jan 2011, 01:05 AM
Is there a way to replace the standard true/false text with some custom text. when using 'Boolean' type of report parameters?

Thanks
Sunil

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Jan 2011, 10:14 AM
Hi Sunil,

You can modify those labels through the Web Report Viewer's Resources properties.  The properties for the report parameter True and False labels are 

  • ReportViewer1.Resources.ReportParametersFalseValueLabel
  • ReportViewer1.Resources.ReportParametersTrueValueLabel

All the best,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
answered on 05 Jan 2011, 03:59 PM
Hi Peter,

I am using a Winforms app for reporting, and not a web form.
Also, with your approach, I cannot set custom text for multiple true/false parameters in the same report.
I think showing custom text to the user is a very valid requirement for end-users, since most end-users do not like a true/false type of condition. They would rather prefer something like:Order Qty is 0 ( i.e. false) and Order Qty > 0 (i.e. true) for a boolean parameter called OrderQtyExists.
I hope there was an easy way to set the labels for true/false on  a per parameter basis.

Thanks
Sunil
0
Peter
Telerik team
answered on 07 Jan 2011, 08:55 AM
Hi Sunil,

The Report Parameter area provides out of the box UI support for the parameters that covers 98% of the user cases and for that reason it is not customizable. In order to achieve your requirement, you should create custom UI for the parameters (for example using our WinForms controls) and hook it up to the parameters via the Reporting API. 

Best wishes,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Peter
Telerik team
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or