Edit this page

RadialGauge PHP Class Overview

The Kendo UI RadialGauge for PHP is a server-side wrapper for the Kendo UI RadialGauge widget.

Getting Started

Configuration

Below are listed the steps for you to follow when configuring the Kendo UI RadialGauge for PHP.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for PHP—include the autoloader, JavaScript, and CSS files.

Step 2 Add a RadialGauge.

Example
    $gauge = new \Kendo\Dataviz\UI\RadialGauge('gauge');
    $gauge->pointer(array('value' => 10))
          ->scale(array('min' => 0, 'max' => 100));

Step 3 Output the RadialGauge by echoing the result of the render method.

Example
    echo $gauge->render();

Reference

Client-Side Instances

You are able to reference an existing RadialGauge instance via the jQuery.data(). Once a reference is established, use the RadialGauge API to control its behavior.

Example
    // Put this after your Kendo RadialGauge for PHP render() call
    <script>
    $(function() {
        // Notice that the Name() of the radialGauge is used to get its client-side instance
        var gauge = $("#radialGauge").data("kendoRadialGauge");
        gauge.value(20);
    });
    </script>

See Also

Other articles on Telerik UI for PHP and on the RadialGauge:

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy