Handle event in radial gauge

2 posts, 1 answers
  1. Tomer
    Tomer avatar
    14 posts
    Member since:
    Feb 2011

    Posted 26 Dec 2012 Link to this post

    Hi,

    I want to add click event on the gauge that will transfer the value to an function and than I will use this data.

    Is there a option to handle events on the radial/linear gauge?

    10x.
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 26 Dec 2012 Link to this post

    Hello Tomer,

    You can add an onclick handler for the div wrapper of the chart so you can get a reference to the control through the control field the DOM object exposes. Then you can use its client-side API to get the value. For example:
    <telerik:RadRadialGauge runat="server" ID="rrg1" onclick="getMyValue(this);">
        <Pointer Value="22">
        </Pointer>
    </telerik:RadRadialGauge>
    <script type="text/javascript">
        function getMyValue(element)
        {
            alert(element.control.get_value());
        }
    </script>



    Greetings,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top