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

dynamic filter label changing

6 Answers 189 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 12 Jun 2018, 03:13 PM

Hi,

I've created a report whose filter label may change.  I'm passing the filter label in as a parameter but when I go to set the label text, the filter label is not appearing when the page first opens and the report includes all data.  When I change the filter or dates and the report refreshes, the filter label is then displayed.  I'm setting the label to the parameter.FilterLabel.Value but again, it doesn't display until the report is refreshed after the initial report is displayed after opening the page.  Any ideas on how to get this filter label to display when the page opens?

 

I've include a pic of what the filter looks like when the page first opens and after a filter is selected.  I'm passing the string 'Department' in as a parameter.

 

Thanks,

Jim

 

6 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 15 Jun 2018, 10:50 AM
Hi Jim,

You can use the AllValues or AllDistinctValues aggregates to load the report with all filter values preselected on the initial load of the report.

Regards,
Nasko
Progress 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
0
Jim
Top achievements
Rank 1
answered on 19 Jun 2018, 12:36 PM

Hi Nasko,

Thanks for the reply.  I'm not actually looking to populate the filter itself as this is already being done.  I'm looking for a method to populate the label of the filter since it's dynamic.  I'm passing the label name in as a parameter, but it does not appear when the page is first displayed.  It only appears after I cause the report to be regenerated again (e.g. I change the date range)   Then the correct label will be displayed.

JIm

 

 

0
Nasko
Telerik team
answered on 20 Jun 2018, 11:53 AM
Hello Jim,

What is the expression you are using to set the Parameter.Text property which controls the label?
Is this behavior observed only in a particular report viewer, or it is present in the report designer as well?

Regards,
Nasko
Progress 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
0
Jim
Top achievements
Rank 1
answered on 20 Jun 2018, 01:36 PM

I've created a report whose filter label may change.  I'm passing the filter label in as a parameter but when I go to set the label text, the filter label is not appearing when the page first opens and the report includes all data.  When I change the filter or dates and the report refreshes, the filter label is then displayed.  I'm setting the label to the parameter.FilterLabel.Value but again, it doesn't display until the report is refreshed after the initial report is displayed after opening the page.  Any ideas on how to get this filter label to display when the page opens?

 

I've attached a pic that shows how I'm setting the label text and what the label looks like initially and after I choose one of the departments.

0
Todor
Telerik team
answered on 25 Jun 2018, 11:14 AM
Hi Jim,

I tested to set the label of one Report Parameter to the value of another Report Parameter, and this works correctly on our side. I tested in Preview with the Standalone report designer, and with Html5 Report Viewer in a Web application.

I suggest you to open a support ticket and send us a sample runnable report/project reproducing the issue. We would investigate it and try to provide a specific advice.

Regards,
Todor
Progress 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
0
Jim
Top achievements
Rank 1
answered on 25 Jun 2018, 03:19 PM

Todor,

Thanks for your reply.  I'll see if I can put together a sample for you to try.

Jim

 

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