Bind SQL Data to Gauge.

2 posts, 0 answers
  1. Rhishikesh Savadikar
    Rhishikesh Savadikar avatar
    1 posts
    Member since:
    Apr 2010

    Posted 10 Apr 2010 Link to this post

    I am creating a silverlight apps with C-sharp Code behind.

    I have written an sql server 2005 query which returns me the maximum integer value of a column. How can I bind this data (a single int value) to the gauge. I browsed through the telerik site, but I didnt find any related examples.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 15 Apr 2010 Link to this post

    Hi Rhishikesh Savadikar,

    You have to pass value you've got from SQL server to the Value property of the gauge indicator. For example:

            <gauges:RadialScale Min="0"
                    <gauges:Needle Name="needle" />

    private void SetValueToGauge()
        // Read data from SQL server and put it to the variable of type double.
        // Then pass it to the indicator's value.
        double value = 25;
        this.needle.Value = value;

    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top