Pass integers to multi value parameter on HTML5 report

2 posts, 0 answers
  1. John
    John avatar
    25 posts
    Member since:
    Apr 2015

    Posted 23 May Link to this post

    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?



  2. Todor
    Todor avatar
    175 posts

    Posted 25 May Link to this post

    Hello John,

    Use a JavaScript array of Integers:

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

    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
Back to Top