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

how can i get the same feature as the raddatafilter in the silverlight for my report

5 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tai
Top achievements
Rank 1
Tai asked on 22 Dec 2010, 12:50 AM
Hi

after reading some threads , i know that we can't use the raddatafilter for the reporting or we don't have any similar components like that in the reporting.

However, how can i get that similar function of the raddatafilter for my reporting

For example, if my radgridview has 3 columns (last name, first name, age)

then i want to be able to filter by Last Name or First name or age ( a drop down box for them will be the best solution). I don't want to have seperated box for each of them (in my real case, i will have a lot of field for the table)

then another drop down to let the user choose the "operator"
and another field to let the user type the value

a function which is similar to the raddatafilter

In summary, i want to achieve something which can let me filter all of the possible Field names in my table without having separated component for each fields. And then let the user print it (having preview option )

I hope my explanation is clear enough

thank you 

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Dec 2010, 10:02 AM
Hi Tai,

There is no interactive filtering built-in into the report itself. However you can filter your report by using the Report Parameters. If needed you can create the filter expression directly in your calling application by user input from UI you've created, but cannot control the report filtering with the Filter asp.net control. See the following links for more information:

Greetings,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Tai
Top achievements
Rank 1
answered on 06 Jan 2011, 09:57 PM
Hi

if possible, can you do a sample demon for your post
"If needed you can create the filter expression directly in your calling application by user input from UI you've created"


thank you
0
Steve
Telerik team
answered on 07 Jan 2011, 05:36 PM
Hi Tai,

Here is a sample code snippet:

(this.ReportViewer1.Report as Report1).Filters.AddRange(new Telerik.Reporting.Data.Filter[] { new Telerik.Reporting.Data.Filter("=Fields.MyField", (Telerik.Reporting.Data.FilterOperator)Telerik.Reporting.Data.FilterOperator.Equal, "=Parameters.MyParam") });

As you can see the report object is exposed and available for use directly from your calling application.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Alessandro Parini
Top achievements
Rank 1
answered on 31 Aug 2011, 03:22 PM
Hi,
Can I create a filter expression like "condition1 OR condition2"?

Thanks
0
Peter
Telerik team
answered on 05 Sep 2011, 08:30 PM
Hi Alessandro Parini,

The OR logical operator is supported in the expressions. For more information check out Operators help article.

Regards,
Peter
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
Tai
Top achievements
Rank 1
Answers by
Steve
Telerik team
Tai
Top achievements
Rank 1
Alessandro Parini
Top achievements
Rank 1
Peter
Telerik team
Share this question
or