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

Report Parameters and AllowBlank

1 Answer 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
fabio bongiovanni
Top achievements
Rank 1
fabio bongiovanni asked on 10 Nov 2010, 01:41 PM
Hello and thanks in advice
i'm evaluating the reporting tool.

I've defined a report with 4 text parameter with allowblank setted to true.

In vs2008 when i test the report all the 4 parameter appear with the red asterisk on the right as they are mandatory.
also i can click preview without setting some value to all the parameters.

first question, how can i make the parameter "optional" (without using allownull is better), i mean the user open the report 
click on just one parameter set some text and click preview?

second question, is there any way to force the load of the report  data just on preview click and not on the loading of the container?

is there any best practice about the conditional showing of column in report? i mean based on a user selection showing some column and hiding some other column.

Regards

Fabio

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Nov 2010, 05:09 PM
Hi Fabio,

Thank you for your interest in Telerik Reporting and up to your questions:
  • currently using AllowNull is the only out of the box way to make a report parameter act as conditional. To achieve the behavior from your description you should create your own UI for the report parameters and wire them up to the Reporting API.
  • If you have set default values for all report parameters, then we assume that you want the report to be displayed with those values in the viewer. Not running the report, means that the user is expected to enter values first and this is the scenario where you do not set default values.
  • take a look at the following forum thread: Hide Table Columns.

Regards,
Steve
the Telerik team
See What's New in Telerik Reporting in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Tags
General Discussions
Asked by
fabio bongiovanni
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or