TileView

A widget displaying several blocks of data as tiles.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js

The dxTileView widget displays objects of a different size and reorders them so that they fit on the screen.

You can create a widget using one of the following approaches.

  • jQuery
    Use the dxTileView jQuery plug-in.

    HTML
    <div id="tileView"></div>
    JavaScript
    var tileViewData = [
        { name: "Alabama", capital: "Montgomery", population: 4822023, area: 135765 },
        { name: "Alaska", capital: "Juneau", population: 731449, area: 1717854 },
        { name: "Arizona", capital: "Phoenix", population: 6553255, area: 295254 },
        ...
    ];
    $("#tileView").dxTileView({
        dataSource: tileViewData,
        itemMargin: 20,
        baseItemHeight: 130,
        baseItemWidth: 180
    });
  • Knockout
    Add a div element and apply the dxTileView binding to this element.

    HTML
    <div data-bind="dxTileView: {
        dataSource: tileViewData,
        itemMargin: 20,
        baseItemHeight: 130,
        baseItemWidth: 180
    }"></div>
  • Angular
    Add a div element and apply the dx-tile-view directive to this element.

    HTML
    <div dx-tile-view="{
        dataSource: tileViewData,
        itemMargin: 20,
        baseItemHeight: 130,
        baseItemWidth: 180
    }"></div>

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

Since the dxTileView widget is used to display multiple items, it supports common Collection Container widget functionality. You can find detailed information on the principles of working with the widget in the dxTileView section of the Collection Container Widgets article.

View Demo

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the dxTileView widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events exposed by this widget.

Default Item Template

This section lists the data source fields that are used in a default template for tile view items.

By default, a predefined item template is applied to display the items of this widget. This template is based on certain fields of the data source provided for this widget. Below is a list of these fields. If the default item template is not appropriate for your task, implement a custom item template based on these or other fields of your data source.

See Also