Telerik Reports Filters - General Discussions - General Discussions - Progress Community
 General Discussions

Telerik Reports Filters

  • Telerik Reports Filters
  • 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
  • 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