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

Passing parameters for preview in Report Designer

2 Answers 785 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 24 Nov 2014, 04:10 PM
Hi,

is there any way to select report parameter value for parameter with defined data source, when preview report in Report Designer?

I can set value for simple text parametr in Parameter Properties window, but how to select value when parameter with own data source for values?

Thanks a lot!

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 27 Nov 2014, 08:05 AM
Hello Vladimir,

The parameter default value can be set via the Parameter.Value property, regardless if the parameter has available values or not. The Value property is used to specify value for the parameter. It can be blank, a value of the allowed types, an expression that evaluates to an object, or IEnumerable containing values of the allowed types.
Note that the specified value should match the value from the AvailableValues.ValueMember expression for one of the records in the AvailableValues.DataSource. Otherwise none of the available parameter values will be selected at run-time.
Additional information on the topic can be found in the Report Parameters help articles.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kyle
Top achievements
Rank 1
answered on 11 May 2016, 05:21 PM
I did all of this and I still see no data when I know that I should.
Tags
General Discussions
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Kyle
Top achievements
Rank 1
Share this question
or