Tying event handler to Reporting Parameter

2 posts, 0 answers
  1. Ben
    Ben avatar
    7 posts
    Member since:
    Feb 2015

    Posted 12 Mar 2015 Link to this post

    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??? 
  2. Nasko
    Admin
    Nasko avatar
    1051 posts

    Posted 17 Mar 2015 Link to this post

    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.

     
Back to Top