1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Telerik Reports Filters

Telerik Reports Filters

2 posts, 0 answered
  1. devesh
    devesh avatar
    1 posts
    Registered:
    11 Mar 2011
    02 Jun 2011
    Link to this post
    How can we pass multiple values using c# for    in    operator of filters of Telerik Reports?
    Example :

    =Fields.CustomerId    in    (1, 6, 7, 88, 22)

    Thanks
  2. Peter
    Peter avatar
    1 posts
    Registered:
    01 Jun 2017
    03 Jun 2011
    Link to this post
    Hello devesh,

    Currently our expressions don't support the required syntax. However you can achieve the same result with a simple user function:

    public static object[] SplitArray(string values)
    {
        return values.Split(',');
    }

    Then you can use the above user function in the reports expressions as shown in the following sample:
     Expression  Operator  Value
    =Fields.CustomerID  In   =SplitArray("1, 6, 7, 88, 22")

    Greetings,
    Peter
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered