IE BUG
by tomwilliams
HTML
<script src="http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.3.1114/styles/kendo.blueopal.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.3.1114/styles/kendo.common.min.css">
<div class="row" >
<div class="col_12 omega">
<div class="demo-section">
<h2>Categories</h2>
<input id="categories" style="width: 250px" />
</div>
<div id="grid"></div>
</div>
</div>
<script id="popup-editor" type="text/x-kendo-template">
<p>
<label style="margin-right:50px">Survey:</label><input style="text-align:left; width:20em" data-bind="value: Survey" pattern="http?://.+" required placeholder="http://"/>
</p>
<p>
<label style="margin-right:32px">Link Text:</label><input style="text-align:left; width:20em" data-bind="value: LinkText" required placeholder="Click here for the September survey"/>
</p>
<p>
<label style="margin-right:18px">Valid From:</label><input data-bind="value: ValidFrom" class="datepicker" required/>
</p>
<p>
<label style="margin-right:40px">Valid To:</label><input data-bind="value: ValidTo" class="datepicker" required/>
</p>
<input style="display:none" data-bind="value: ID" />
</script>
JavaScript
kendo.culture("en-GB");
var gridVA = '';
var DataSet = [];
var dataSource = [];
var VaFilter = '';
var SelectedCategory = '';
var ctkGridData = [];
var JsonAttributes = [{"Company":"JLR USED","ID":1,"LinkText":"Click here to complete the September survey ","Survey":"http:\/\/www.surveymonkey.com\/s\/QKQ7MQ8","ValidFrom":"\/Date(1377990000000+0100)\/","ValidTo":"\/Date(1380581999000+0100)\/"}];
$(document).ready(function() {
ctkGridData = new kendo.data.DataSource({
data: JsonAttributes,
schema: {
model: {
id: "ID",
fields: {
Company: { editable: false, nullable: false },
Survey: { validation: { required: true} },
LinkText: { validation: { required: true} },
ValidFrom: { type: "string", editable: true, },
ValidTo: { type: "string", editable: true, nullable: false }
}
}
}
});
LoadGrid();
});
// });
function toDate(value) {
try {
var myDate = new Date(parseInt(value.replace(/\/+Date\(([\d+-]+)\)\/+/, '$1')));
var output = myDate.getDate() + "\/" + (parseInt(myDate.getMonth()) + 1) + "\/" + myDate.getFullYear() + ' ';
var timeOutPut = myDate.getHours() + "\:" + myDate.getMinutes() + "\:" + myDate.getSeconds()
if (timeOutPut != '0:0:0') {
output += ' ' + timeOutPut
}
return output
}
catch (e) {
return null;
}
}
function LoadGrid() {
var crudServiceBaseUrl = "../Maintenance.svc";
gridVA =...