Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (79 sloc) 2.529 kb
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Test dijit mixed layout</title>
<meta name="viewport" content="width=570"/>
<style type="text/css">
@import "../../dijit/themes/claro/document.css";
@import "../../dijit/themes/claro/claro.css";
@import "../css/skins/claro.css";
html, body {
padding: 0;
margin: 0;
height: 100%;
overflow: hidden;
#appLayout {
height: 100%;
#grid1, #grid2 {
<script type="text/javascript" src="../../dojo/dojo.js"
data-dojo-config="async: true"></script>
<script type="text/javascript">
// non-returns
], function(Grid, Selection, DijitRegistry, registry, lang, declare, BC, TC, CP, parser){
gridCols = window.gridCols = {
col1: "Column 1",
col2: {name: "Column 2", sortable: false},
col3: "Column 3",
col4: "Column 4"
CustomGrid = declare([Grid, Selection, DijitRegistry]);
// add grids as content to ContentPanes parsed within page
window.grid1 = new CustomGrid({
id: "grid1",
store: testStore,
columns: lang.clone(gridCols),
selectionMode: "single"
registry.byId("cp1").set("content", grid1);
window.grid2 = new CustomGrid({
id: "grid2",
store: testStore,
columns: lang.clone(gridCols),
selectionMode: "single"
registry.byId("cp2").set("content", grid2);
<body class="claro">
<div id="appLayout" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design: 'headline'">
<div class="centerPanel" data-dojo-type="dijit.layout.TabContainer" data-dojo-props="region: 'center', tabPosition: 'top'">
<div data-dojo-type="dijit.layout.ContentPane" id="cp1" title="grid 1" selected="true">
<div data-dojo-type="dijit.layout.ContentPane" id="cp2" title="grid 2">
<div class="edgePanel" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'top'">Test dijit mixed layout - programmatic dgrid in declarative layout</div>
Jump to Line
Something went wrong with that request. Please try again.