<!DOCTYPE html><html><head><meta name="description" content="[chart]" /><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js"></script></head><body> <div id="chart"></div> <script> $(function() { var data = [ { "Date": "12/31/2007", "IndexValue": 190.68435691915832, }, { "Date": "1/1/2008", "IndexValue": 190.67087650872867, }, { "Date": "1/2/2008", "IndexValue": 190.67087650872867, }, { "Date": "1/3/2008", "IndexValue": 190.67087650872867, } ]; $("#chart").kendoChart({ theme: $(document).data("kendoSkin") || "default", title: { text: "Charge current vs. charge time" }, legend: { visible: true }, seriesDefaults: { type: "line" }, series: [{ name: "Date", field: "Date" }], valueAxis: { field: "IndexValue" }, tooltip: { visible: true, format: "{1}% in {0} minutes" } }); }); </script></body></html>This is my first time using Kendo UI and I'm trying to set up a simple grid with data fed from a json file.
When the page loads, it doesn't display anything and it does not give me any type of error, am i doing anything wrong?
var Data = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:88/Animation.svc/GetProspect",
dataType: "json"
}
},
});
$("#grid").kendoGrid({
dataSource: Data,
columns: [
{
field: "Date",
title: "Date"
},
{
field: "Name",
title: "Name"
}],
height: 200,
scrollable: true,
pageable: true,
sortable: {
mode: "multiple"
}
});
This is what the json format looks like:
[{"Date":"12-31-2010","Name":"A","LastName":"B"}, {"Date":"12-31-2011","Name":"B","LastName":"C"}]
It appears that IE (8,9, not sure about 7) does not support selecting multiple files when uploading files. I believe this is a browser limitation as Firefox does this without issue. Is there anything I can do? This could be a showstopper unfortunately.
template: "<input type='checkbox' class='k-checkbox' # if (ChkbxCol) { # checked='checked' # } #>"},<script id="rowTemplate" type="text/x-kendo-tmpl"> <tr> <td>#= kendo.toString(Received_Date,"MM/dd/yyyy") #</td> <td align:"center"> #if(ChkbxCol){# <input type="checkbox" checked="checked" /> #}else{# <input type="checkbox" /> #}# </td> </tr> </script><table id="grid">
<thead>
<tr>
<th data-field="field1"></th>
<th data-field="Id">MyFiels</th>
</th>
</thead>
<tbody>
<tr><td> (and so on..)
</tbody>
</table>
Now I convert the grid using the following code:
$("#grid").kendoGrid({
sortable: true,
selectable: "row",
height: 350,
pageable: {
refresh: false,
pageSize: 30
}
});
I've trie to set a kind of "RecordCount" property in order to build a number of page links according to PageSize and "TotalRecordCount"
I've tried to set Schema.
schema: {total: 1000 }