Methods

destroy()

To destroy the digital gauge

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.destroy();

    exportImage(fileName, fileType)

    To export Digital Gauge as Image

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.exportImage();

    getPosition(itemIndex)

    Gets the location of an item that is displayed on the gauge.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.getPosition();

    getValue(itemIndex)

    ClientSideMethod getValue Gets the value of an item that is displayed on the gauge

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.getValue();

    refresh()

    Refresh the digital gauge widget

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.refresh();

    setPosition(itemIndex, value)

    ClientSideMethod Set Position Sets the location of an item to be displayed in the gauge

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.setPosition();

    setValue(itemIndex, value)

    ClientSideMethod SetValue Sets the value of an item to be displayed in the gauge.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1"))
  • js
  • var gauge = $("#Gauge1").data("ejDigitalGauge");
    gauge.setValue();

    Events

    Init

    Triggers when the gauge is initialized.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .Init("init")
    
    )
  • js
  • function init(){
        // Do Something
    }

    ItemRendering

    Triggers when the gauge item rendering.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .ItemRendering("itemRendering")
    
    )
  • js
  • function itemRendering(){
        // Do Something
    }

    Load

    Triggers when the gauge is start to load.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .Load("load")
    
    )
  • js
  • function load(){
        // Do Something
    }

    RenderComplete

    Triggers when the gauge render is completed.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .RenderComplete("renderComplete")
    
    )
  • js
  • function renderComplete(){
        // Do Something
    }

    Click

    Click event triggers on clicking the gauges.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .Click("click")
    
    )
  • js
  • function click(){
        // Do Something
    }

    DoubleClick

    The DoubleClick event is triggered when double clicking the gauges.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .DoubleClick("doubleClick")
    
    )
  • js
  • function doubleClick(){
        // Do Something
    }

    RightClick

    The RightClick event is triggered when right clicking the gauges.

  • cshtml
  • @(Html.EJ().DigitalGauge("Gauge1")
    
    .RightClick("rightClick")
    
    )
  • js
  • function rightClick(){
        // Do Something
    }