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

Static Report Parameters - how?

1 Answer 243 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DR
Top achievements
Rank 1
DR asked on 12 Jul 2012, 04:17 PM
The documentation indicates that parameter values can be static:
"Parameters can contain single values or multiple values, use a static or query-based valid values list
Yet goes on to say
"To define available values for a parameter you need to setup the following nested properties:
 DataSource –

Is it possible to create static parameter values at design time?  (E.g. Y,N )
how?

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 13 Jul 2012, 04:09 PM
Hi Dennis,

Even if the values are static, they can't be typed at design-time. The easiest way would be to create a simple User Function that will return an array with the items and set this user function as the DataSource on the AvailableValues of the parameter (the ValueMember should be = "Item" in this case). 

Greetings,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
DR
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or