Hi!
I use the
AddHandler dash.DashboardItemControlUpdated, AddressOf dash_updated
event, to get the individual componentes of dashboards… for grid, pivot, charts, I to do a lot of changes… colors, series, etc…
So, now for GAUGES, I try change de xml … this way:
Visual BasicPrivate Sub dash_updated(sender AsObject, e As DevExpress.DashboardWin.DashboardItemControlEventArgs)
If InStr(LCase(e.DashboardItemName), "gaugedashboarditem1") > 0 Then
Dim gauge As GaugeControl = e.GaugeControl
And can apply a style, using this
Visual Basic If gauge IsNot Nothing Then
gauge.RestoreLayoutFromXml(System.Windows.Forms.Application.StartupPath &
"\Templates_modelo\circulartemplate2.xml")
end if
end sub
FOR ONE GAUGE , Works very fine! change my gauge perfect!!
But usually I have more than one gauge on this control.
How I change in all the gauges?
I tried this way, but not exist "restorelayout" this way: gauge.Gauges(i)
thanks!!
Aljr,
I would like to clarify the final goal of this code. How do you wish to modify gauges and why do you need to have their layout? A full understanding of your case will help us to find the best solution for you. I hope to hear from you soon.
So, because this way I can load all models of gauges from xtragauges!
(the models of dashboard are limited, few models…) - attach examples… (I save they how xml and load in this event!)
I kown that works… for ONE gauge works fine! I only need to know how I need to proceed when I have a lot of gauges…
His colleagues help me this way for grid, pivot and chart, I to do many things!!
thanks!