Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Set Lable according to Range Name
posted

I am trying to change the Text value of the labels on the preset Radial Gauge - 'HybridRadialDigital'.

Right now the labels are generated by the value of the Range as far as I can tell and formatted using <DATA_VALUE:0>. I want to set my own text for each of the labels but can't find anything in the documentation to do so. Although it may be there i am just not familiar enough with the schema for these gauges yet.

I have included a screenshot of the labels i want to change

If i have to do it in code thats fine too, even better actually, I just don't know the path to the labels text.

Thanks for any help, these gauges, once working, will save me a ton of time and make me look like a hero at work.

Cheers

Parents
No Data
Reply
  • 28496
    Offline posted

    Sorry for the very late reply.  I hope you were able to find an answer to your question.  If not, it is this: handle the control's RenderLabel event and use the EventArgs to modify the text, like this:

     

    void ultraGauge1_RenderLabel(RenderLabelEventArgs e)

    {

    if (e.Text == "5") e.Text = "Five";

    }

Children
No Data