Search results

Events in ASP.NET Core Linear Gauge control

17 Sep 2021 / 3 minutes to read

This section describes the Linear Gauge component’s event that gets triggered when corresponding operations are performed.

AnimationComplete

When the pointer animation is completed, the AnimationComplete event will be triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" AnimationComplete="animationComplete">
    <e-lineargauge-axes>
        <e-lineargauge-axis>
            <e-lineargauge-pointers>
                <e-lineargauge-pointer Value="10"></e-lineargauge-pointer>
            </e-lineargauge-pointers>
        </e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>

<script>
    function animationComplete() {
	}
</script>

AnnotationRender

Before the annotation is rendered in the Linear Gauge, the AnnotationRender event will be triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2

<ejs-lineargauge id="linear" Orientation="Horizontal" AnnotationRender="annotationRender">
    <e-lineargauge-annotations>
        <e-lineargauge-annotation Content="<div><h1>Gauge</h1></div>" ZIndex="1" AxisValue="0"></e-lineargauge-annotation>
    </e-lineargauge-annotations>
</ejs-lineargauge>

<script>
    function annotationRender(args) {
    }
</script>

AxisLabelRender

Before each axis label is rendered in the Linear Gauge, the AxisLabelRender event is fired. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" AxisLabelRender="axisLabelRender">
</ejs-lineargauge>

<script>
    function axisLabelRender() {
	}
</script>

BeforePrint

The BeforePrint event is fired before the print begins. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2;

<div id="container">
    <button id="print">Print</button>
        <ejs-lineargauge id="gauge" Load="gaugeLoad" AllowPrint="true" BeforePrint="beforePrint" Orientation="Horizontal">
            <e-lineargauge-axes>
                <e-lineargauge-axis Minimum="0" Maximum="120">
                </e-lineargauge-axis>
            </e-lineargauge-axes>
      </ejs-lineargauge>
</div>
<script>
    window.gaugeLoad = function (args) {
        window.gauge = args.gauge;
    }
    window.onload = function () {
        document.getElementById("print").onclick = () => {
            window.gauge.print();
        };
    };
	
	function beforePrint(args) {
	}
</script>

DragEnd

The DragEnd event will be fired before the pointer drag is completed. To know more about the argument of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" DragEnd="dragEnd">
    <e-lineargauge-axes>
        <e-lineargauge-axis>
            <e-lineargauge-pointers>
                <e-lineargauge-pointer EnableDrag="true"></e-lineargauge-pointer>
            </e-lineargauge-pointers>
        </e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>

<script>
    function dragEnd() {
	}
</script>

DragMove

The DragMove event will be fired when the pointer is dragged. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" DragMove="dragMove">
    <e-lineargauge-axes>
        <e-lineargauge-axis>
            <e-lineargauge-pointers>
                <e-lineargauge-pointer EnableDrag="true"></e-lineargauge-pointer>
            </e-lineargauge-pointers>
        </e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>

<script>
    function dragMove() {
	}
</script>

DragStart

When the pointer drag begins, the DragStart event is triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" DragStart="dragStart">
    <e-lineargauge-axes>
        <e-lineargauge-axis>
            <e-lineargauge-pointers>
                <e-lineargauge-pointer EnableDrag="true"></e-lineargauge-pointer>
            </e-lineargauge-pointers>
        </e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>

<script>
    function dragStart() {
	}
</script>

GaugeMouseDown

When mouse is pressed down on the gauge, the GaugeMouseDown event is triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" GaugeMouseDown="gaugeMouseDown"></ejs-lineargauge>

<script>
    function gaugeMouseDown(args) {
	}
</script>

GaugeMouseLeave

When mouse pointer moves over the gauge, the GaugeMouseLeave event is triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" GaugeMouseLeave="gaugeMouseLeave"></ejs-lineargauge>

<script>
    function gaugeMouseLeave(args) {
	}
</script>

GaugeMouseMove

When mouse pointer leaves the gauge, the GaugeMouseMove event is triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" GaugeMouseMove="gaugeMouseMove"></ejs-lineargauge>

<script>
    function gaugeMouseMove(args) {
	}
</script>

GaugeMouseUp

When the mouse pointer is released over the Linear Gauge, the GaugeMouseUp event is triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" GaugeMouseLeave="gaugeMouseLeave"></ejs-lineargauge>

<script>
    function gaugeMouseLeave(args) {
	}
</script>

Load

Before the Linear Gauge is loaded, the Load event is fired. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" Load="load"></ejs-lineargauge>

<script>
    function load(args) {
	}
</script>

Loaded

After the Linear Gauge has been loaded, the Loaded event will be triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" Loaded="loaded"></ejs-lineargauge>

<script>
    function loaded(args) {
	}
</script>

Resized

After the window resizing, the Resized event is triggered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" Resized="resized"></ejs-lineargauge>

<script>
    function resized(args) {
	}
</script>

TooltipRender

The TooltipRender event is fired before the tooltip is rendered. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge

<ejs-lineargauge id="gauge">
    <e-lineargauge-tooltip Enable="true" TooltipRender="tooltipRender"></e-lineargauge-tooltip>
    <e-lineargauge-axes>
        <e-lineargauge-axis>
            <e-lineargauge-pointers>
                <e-lineargauge-pointer Value="80"></e-lineargauge-pointer>
            </e-lineargauge-pointers>
        </e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>

<script>
    function tooltipRender(args) {
    }
</script>

ValueChange

The ValueChange event is triggered when the pointer is dragged from one value to another. To know more about the arguments of this event, refer here.

tagHelper
Copied to clipboard
@using Syncfusion.EJ2.LinearGauge;

<ejs-lineargauge id="linear" ValueChange="valueChange">
    <e-lineargauge-axes>
        <e-lineargauge-axis>
            <e-lineargauge-pointers>
                <e-lineargauge-pointer EnableDrag="true"></e-lineargauge-pointer>
            </e-lineargauge-pointers>
        </e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>

<script>
    function valueChange() {
	}
</script>