Hi,
I am adding a gauge widget to asp.net dashboard. Is it possible to configure it to show different needle colors based on data or display colored ranges in the gauge? Sample attached.
Thanks,
Aditi
Hi,
I am adding a gauge widget to asp.net dashboard. Is it possible to configure it to show different needle colors based on data or display colored ranges in the gauge? Sample attached.
Thanks,
Aditi
Hi Aditi,
While at present, gauge elements cannot be customized in the Dashboard Designer, it is possible to access the gauge widget used to represent the Gauge Dashboard Item and modify the gauge layout and appearance settings at runtime (see the ASPxClientDashboardViewer.ItemWidgetCreated event). Please refer to the sample code example from the Web Gauge Item - Add custom range bars and set custom min and max values ticket that illustrates how to configure range elements. You can also configure the Value Indicator element color as shown in the attached sample project. Let us know how it works for you.
Hi
As i was trying to implement the above solution, to customize gauge background color, there was a delay in applying color. Initially the gauge loads in default gray color, and after few seconds, the custom color in the clientside event is applied. Is there any other option to avoid that delay?
Hi,
Custom styles are applied with a delay because dashboard items are rendered asynchronously and the ItemWidgetCreated event is fired after all dashboard items are rendered.
Use the onItemWidgetOptionsPrepared event handler to apply custom styles to Gauge dashboard items. Please refer to the following example that illustrates this approach and let us know how it works for you: Dashboard for Web Forms - How to apply animation to Chart items.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.