checkbox in Report designer

5 posts, 1 answers
  1. Web
    Web avatar
    7 posts
    Member since:
    Dec 2013

    Posted 22 Jan Link to this post

    Hi,

     

    I would like to use checkbox in my report.

    Selecting check box should display data and deselecting should not display data in report.

    How to achieve above in Telerik report designer.

    Thank you.

  2. Veronika
    Admin
    Veronika avatar
    17 posts

    Posted 27 Jan Link to this post

    Hi,

    The easiest way to achieve the desired outcome is by setting an Action to the checkbox. Here are the steps.

    First, create a report parameter from Type Boolean, let's name it Parameter1. Set it visibility to false, If you do not want to see it in the Parameters area.

    Second, place everything that should be hidden in a panel and set its Visible property based on a Parameter1 value. Here it is used Binding dialog.

    And finally,  set the Action, Navigate to Report, to the checkbox. The action should navigate to the same report but with the updated report parameter value.

    Bind the checkbox value to the Parameter1 value. Set it Text to be different by using the expression window. Something like this:

    = IIf(Parameters.Parameter1.Value, "Hide the section", "Show the section")
    And, volya. This is all.

    The attached report demonstrates the approach. Let us know if you have further questions.

    Regards,
    Veronika
    Progress Telerik

    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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Web
    Web avatar
    7 posts
    Member since:
    Dec 2013

    Posted 28 Jan in reply to Veronika Link to this post

    In Action section, Parameter value is not showing in "Edit Parameters".

  4. Answer
    Neli
    Admin
    Neli avatar
    252 posts

    Posted 29 Jan Link to this post

    Hello,

    Make sure that you have saved the report after adding the report parameter. If this doesn't solve the issue, consider sending us the problematic report.

    Regards,
    Neli
    Progress Telerik

    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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Web
    Web avatar
    7 posts
    Member since:
    Dec 2013

    Posted 29 Jan Link to this post

    It worked. Thanks!
Back to Top