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

Tying event handler to Reporting Parameter

1 Answer 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 12 Mar 2015, 05:32 PM
Hi All,

I've got a report where parameters are used in cascading manner. One of the requirements is to have conditional on parameter B based on parameter A selection. Therefore, if selection of parameter A returns 1 record for parameter B, then that should be selected by default; else no selection for parameter B is made.

To accomplish this, I'm trying to tie an event handler to a report parameter on Select. Is this possible? I tried using PropertyChanged, but that does not fire. Do I need to use NeedDataSource event for parameter B's binding??? 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 17 Mar 2015, 01:18 PM
Hello Robert,

You can pass parameter A to a user function inside the parameter B value expression and perform the described logic there.

It is also possible to use Parameters.ParameterA.Value.Length in your expression. This will give the number of records in parameter A.

We do not provide any events for the report parameters and using events is not recommended in general.

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.

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