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
    }