How to make Report Parameter visible based on value of another report parameter selection

4 posts, 0 answers
  1. Mary
    Mary avatar
    10 posts
    Member since:
    Aug 2014

    Posted 13 Jun Link to this post

    Hi,

    I have scenario where i have to make some report parameter visible based one Report parameter value like

    in below screenshot attached if i select Audience in SelectCriteria ReportParameter  then report parameter listing all Audience value should display( and hide the Interviewee Report parameter), if Interviewee is selected in the  SelectCriteria ReportParameter then report parameter listing all interviewee should show (Audience report parameter should hide)

    Please help me on this as it urgent.

    Thank in advance

     

     

     

     

  2. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 14 Jun Link to this post

    Hi Mary,

    Report parameters cannot be hidden based on other report parameter.
    Instead I can suggest you:
    1. On report level - create cascading parameters, where values of the first parameter will control the values of the second parameter. For more details check How to: Cascading Parameters with applied filtering on data source level;
    2. On data-retrieval level - interpret selected values based on your requirements e.g. if you have a specific value for a given report parameter discard other received values. For example:
      public DataTable GetData(int controlParam, int secondParam, int thirdParam)
       {
         if(controlParam==0)
               return MyDataAccessLayer.GetData(controlParam);
          else
               return MyDataAccessLayer.GetData(controlParam, secondParam,thirdParam);
      }
    3. On UI level - you can create custom UI to let the user select values. This will let you show/hide parameter editors per your requirements. The custom UI should update the viewer's ReportSource.Parameters collection on submit. To hide the default viewer's parameters area, you can set all parameters Visible properties to false.

    If you need further help, please use the support ticketing system, which guarantees you a response by Telerik representative.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Mary
    Mary avatar
    10 posts
    Member since:
    Aug 2014

    Posted 14 Jun Link to this post

    Hi,

    Can you please give sample example on code snippet given and for Custom UI to show /hide.

    thanks in advance,

     

    regards,

    Mary Jain

  5. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 15 Jun Link to this post

    Hi Mary,

    If you are using the HTML5 Viewer or its MVC wrapper, please check the following tutorial:

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top