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

4 posts, 0 answers
  1. Sunil
    Sunil avatar
    234 posts
    Member since:
    Jan 2004

    Posted 31 Dec 2010 Link to this post

    Is there a way to replace the standard true/false text with some custom text. when using 'Boolean' type of report parameters?

    Thanks
    Sunil
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 05 Jan 2011 Link to this post

    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.
  3. DevCraft banner
  4. Sunil
    Sunil avatar
    234 posts
    Member since:
    Jan 2004

    Posted 05 Jan 2011 Link to this post

    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
  5. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 07 Jan 2011 Link to this post

    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.
Back to Top