Available in the OSS Version

Tile Manager - Custom Size Tiles

This sample demonstrates instantiating the Tile Manager with specific width and height for each column.

Confucius

Aristotle

Socrates

Machiavelli

Voltaire

Karl Marx

This sample is designed for a larger screen size.

On mobile, try rotating your screen, view full size, or email to another device.

The tile manager gives you an opportunity to set specific width/height for each column by px, percent or * (fills the remaining space).

Code View

Copy to Clipboard
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <!-- Ignite UI for jQuery Required Combined CSS Files -->
    <link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
    <link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/structure/infragistics.css" rel="stylesheet" />

    <!-- Modernizr/jQuery/jQuery UI -->
    <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
    <script src="/data-files/js-controls.js"></script>

    <!-- Ignite UI for jQuery Required Combined JavaScript Files -->
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.core.js"></script>
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.lob.js"></script>

    <script src="/data-files/philosophers.js"></script>
</head>
<body>
    <style type="text/css">
        #philosophers {
            margin-top: -10px;
            margin-left: -5px;
        }

        .item-container {
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
        }

        .maximized-container {
            height: 100%;
            position: relative;
        }

        .item-name {
            margin: 0;
            color: #FAFAFA;
            font-size: 20px;
            text-shadow: 2px 2px 4px #424242;
            margin-left: 5px;
        }

        .item-quote {
            color: #424242;
            font-size: 30px;
            background: rgba(255,255,255,0.8);
            position: absolute;
            bottom: 0;
            padding: 10px;
        }

        .item-name-maximized {
            font-size: 30px;
        }

        .ig-tile-minimize-button {
            position: relative;
        }

        .ig-layout-item {
            padding: 0;
            border: none;
        }

        .ui-igtile-inner-container:hover {
            background-color: #EEEEEE;
        }
    </style>
    <div id="philosophers">
    </div>
    <script type="text/javascript">
        $(function () {
            $("#philosophers").igTileManager({
                width: "100%",
                height: "620px",
                marginLeft: 10,
                marginTop: 10,
                dataSource: philosophers,
                columnHeight: ["200px", "150px", "*"],
                columnWidth: ["30%", "*", "250px"],
                items: [
                    { rowIndex: 0, colIndex: 0, rowSpan: 1, colSpan: 1 },
                    { rowIndex: 0, colIndex: 1, rowSpan: 2, colSpan: 1 },
                    { rowIndex: 0, colIndex: 2, rowSpan: 1, colSpan: 1 },
                    { rowIndex: 1, colIndex: 0, rowSpan: 2, colSpan: 1 },
                    { rowIndex: 1, colIndex: 2, rowSpan: 1, colSpan: 1 },
                    { rowIndex: 2, colIndex: 1, rowSpan: 1, colSpan: 2 }
                ],
                maximizedState: $("#maximized-state").html(),
                minimizedState: $("#minimized-state").html()
            });
        });
    </script>

    <script id="maximized-state" type="text/template">
        <div class="item-container" style="background-image: url(${picture});">
            <div class="maximized-container">
                <h3 class="item-name item-name-maximized">${name}</h3>
                <div class="item-quote">${quote}</div>
            </div>
        </div>
    </script>

    <script id="minimized-state" type="text/template">
        <div class="item-container" style="background-image: url(${picture});">
            <h3 class="item-name">${name}</h3>
        </div>
    </script>
</body>
</html>