Adding igZoombar

Topic Overview


This topic explains, with code examples, how to add the igZoombar™ control to an HTML page and an ASP.NET MVC application.

Required background

The following topics are prerequisites to understanding this topic:

  • igZoombar Overview: This topic provides conceptual information about the igZoombar control and the functionalities it including the supported user interactions and some configuration basics.

In this topic

This topic contains the following sections:

Adding igZoombar – Conceptual Overview

igZoombar summary

The igZoombar cannot work as a standalone control. It is designed to be used as an enhancement to range-enabled controls like igDataChart™. It works only in combination with other controls. The igZoombar supports igDataChart out of the box.

igZoombar summary chart

The following table gives a brief conceptual summary on how to add the igZoombar control to an HTML page and an ASP.NET MVC application. For further details, see Adding igZoombar – Code Examples.

To enable igZoombar in… Do this…
JavaScript Create and instance of igZoombar control and attach it to the igDataChart control using the target option.
ASP.NET MVC In the View, use the Infragistics® MVC Helper and call its Zoombar method which returns the ZoombarWrapper object. Attach the ZoombarWrapper object to an igDataChart control using its Target method. Finally, call the ZoombarWrapper.Render method.
Note: There is no need to define placeholders in the HTML page. They will be created automatically by the Infragistics ASP.NET MVC wrapper

Adding igZoombar – Code Examples

Code examples summary

The following table lists the code examples included in this topic.

Code Example: Adding igZoombar in JavaScript


The following code creates an igZoombar instance with its default configuration and connects it to an igDataChart.



<!--Add a placeholders to the HTML page -->
<div id="chart"></div>
<div id="zoom"></div>
var chart = $("#chart");
// igDataChart options
    target: "#chart"

Code Example: Adding igZoombar in ASP.NET MVC


The following code creates igDataChart and igZoombar instances in the View using the Infragistics ASP.NET MVC wrappers. The igZoombar control is rendered with its default configuration.


In C#:

// DataChart options

Related Content


The following topics provide additional information related to this topic.


The following samples provide additional information related to this topic.

  • Basic Zoombar: This sample demonstrates integrating igZoombar in an igDataChart control showing financial data.

View on GitHub