Last active
December 19, 2015 10:29
-
-
Save Injac/5940642 to your computer and use it in GitHub Desktop.
Shows how to extend a standard Telerik Report, to create filters at runtime using a new constructor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Initializes a new instance of the <see cref="YOURREPORT" /> class. | |
/// </summary> | |
/// <param name="YOURPARAMETER">The YOURPARAMETER.</param> | |
public YOURREPORTNAME(string YOURPARAM) | |
{ | |
Filter userFilter = new Filter(); | |
userFilter.Expression = "=Fields.YOURFIELD"; | |
userFilter.Operator = FilterOperator.Equal; //CHOOSE YOUR OPERATOR HERE | |
userFilter.Value = String.Format("={0}", YOURPARAM); | |
this.Filters.Add(userFilter); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment