Telerik Reports Filters

Posted by Community Admin on 03-Aug-2018 19:42

Telerik Reports Filters

All Replies

Posted by Community Admin on 02-Jun-2011 00:00

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

Posted by Community Admin on 03-Jun-2011 00:00

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

This thread is closed