Profile Picture

Chart is not updating

Posted By Devin Ellis 6 Years Ago
Author
Message
Devin Ellis
Problem Posted 6 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 9, Visits: 81
In WPF, we have a grid where each row is the name of a chart and beside that a tab control.
When a grid row is clicked we select the appropriate grid tab, as the currently viewed tab, and initialize the chart (which is displayed 
in an NChartControl). After the chart is initialized we call Refresh on the NChartControl. We do this because there
can be a number of charts and we don't want them all to be initialized on startup of the view because of the time
it takes. So by initializing and refreshing when the chart is made viewable we minimize startup time of the view.
This only works on the first tab that is brought up, the rest of the tabs just show an empty chart control.
What is wrong with this approach? Note: we have tried InvalidateVisual on the chart control and that does not help either.








Similar Topics


Reading This Topic