$(document).ready(function () {
	var dataSource = #datasource#;
	Globalize.culture("de-DE");
	var titleSet = false;
	
var dataGrid = $("#id#").dxDataGrid({
	dataSource: {
       	store: {
			data: dataSource,
			type: "array"#keyfield#
		}
	}, 
    showColumnLines: false,
    showRowLines: true,
    rowAlternationEnabled: true,
    showBorders: true,
	hoverStateEnabled: true,
    columns: #datafields#,
	onRowClick: function(e){
		var prefix="#prefix#";
		if (prefix != ""){
			window.location.href = encodeURIComponent(prefix + e.key) + ".html";
		}
	},
	onContentReady: function(e){
		var title = "#title#";
		if (title != "" && !titleSet){
			var s = "<h3 style=\"font-size:28px;font-family:'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana;" +
			  "font-weight:200;fill:#232323;cursor:default;text-align:center;margin-top:3px;margin-bottom:20px;overflow:visible\">" + title + "</h3>";  
			$("#id#").before(s);
			titleSet = true;
		}
	}
	
}).dxDataGrid("instance");

/*$("#column-lines").dxCheckBox({
    text: "Show Column Lines",
    value: false,
    onValueChanged: function(data) {
        dataGrid.option("showColumnLines", data.value);
    }
});

$("#row-lines").dxCheckBox({
    text: "Show Row Lines",
    value: true,
    onValueChanged: function(data) {
        dataGrid.option("showRowLines", data.value);
    }
});

$("#show-borders").dxCheckBox({
    text: "Show Borders",
    value: true,
    onValueChanged: function(data) {
        dataGrid.option("showBorders", data.value);
    }
});

$("#row-alternation").dxCheckBox({
    text: "Alternating Row Color",
    value: true,
    onValueChanged: function(data) {
        dataGrid.option("rowAlternationEnabled", data.value);
    }
});*/
})