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

Pass integers to multi value parameter on HTML5 report

1 Answer 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 23 May 2018, 06:28 PM

I'm trying to figure out how to pass a list of integers client side from a .NET application to a multi value parameter on a HTML5 report.

For a single parameter it works fine.

parameters: { CompanyIds: 3}

 

But if I try to pass multiple values it fails with a JavaScript syntax error.

parameters: { CompanyIds: {3229, 3332, 3223, 3334} }

 

What is the correct way to pass a list of integers to a multi value parameter client side for a HTML5 report?

 

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 25 May 2018, 03:06 PM
Hello John,

Use a JavaScript array of Integers:

parameters: { "CompanyIds" : [3229, 3332, 3223, 3334] }

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
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or