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
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.