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

Get count of multi-value parameter

2 Answers 288 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 22 Aug 2017, 09:22 AM
Hello,

I need to count how much values can be selected from a multi-value parameter, so I can display "Selected 15 of 20". So somehow I need to get the 20.

I can display how much values I have selected (15) with "= Parameters.v_test.Value.Length", but I can't find a solution for the other value (20).

Maybe someone has any idea. Is this possible without user functions?

Thanks,
Diego

2 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 22 Aug 2017, 01:21 PM
Hi Diego,

You can use ReportParameter.AvailableValues.Count to get the total number of values, for example:
selected {Parameters.Parameter1.Value.Length} of {Parameters.Parameter1.AvailableValues.Count}

Hope this helps.


Regards,
Katia
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
Diego
Top achievements
Rank 1
answered on 24 Aug 2017, 09:48 AM

Hi Katia,

perfect - it works.

Thank you very much,
Diego

Tags
Report Designer (standalone)
Asked by
Diego
Top achievements
Rank 1
Answers by
Katia
Telerik team
Diego
Top achievements
Rank 1
Share this question
or