Complex filtering for RadChart

Posted by: the telerik blogs, on 03 Jun 2011 | View original | Bookmarked: 0 time(s)

RadChart allows you to programmatically filter its data using FilterDescriptors as demonstrated in our help topic. However there are scenarios where you would like to have more complex filtering. For a sample scenario where a Chart is drawn according to the filtered RadGridViews data - read further.
The Chart and the GridView will be populated with the same data source List of Business Objects:

  1. public class MyDateObject
  2. {
  3. public double SampleValue { get; set; }
  4. public DateTime Date { get; set; }
  5. }
  6.  
  7. public class MyDataContext
  8. {
  9. public const int min = 20;
  10. public const int max = 80;
  11. public ObservableCollection<MyDateObject> List { get; set; }
  12. Random r = new Random();
  13. DateTime baseDate = DateTime.Today;
  14.  
  15. public MyDataContext()
  16. {
  17. this.CreateChartData();
  18. }
  19.  
  20. private void...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: GridView | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 356 | Hits: 5

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD