or
$(window).resize(function () { // for any chart or gauge widget $(".k-chart").each(function () { // get the instance of the chart/gauage var chart = kendo.widgetInstance($(this), kendo.ui); var c = $(this).data("kendoChart"); // make sure transitions are off //chart.options.transitions = false; console.log($(window).height() * 0.4); c.height($(window).height() * 0.4); // redraw the chart/gauge if (chart && chart.redraw) { chart.redraw(); } }); }); <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><br> <script type="text/javascript" src="/js/vendor/kendo-ui/kendo.all.min.js"></script><br><br> <div class="k-content"><br> <textarea id="KEditor" rows="10" cols="30" placeholder="@GetText("Content")" maxlength="255" style="height: 500px"></textarea> <br> </div>$(document).ready(function() {<br> $("#KEditor").kendoEditor({<br> tools: [<br> "fontName",<br> "fontSize",<br> "foreColor",<br> "backColor",<br> "bold",<br> "italic",<br> "underline",<br> "justifyLeft",<br> "justifyCenter",<br> "justifyRight",<br> "justifyFull",<br> "insertUnorderedList",<br> "insertOrderedList",<br> "indent",<br> "outdent",<br> "createLink",<br> "unlink",<br> "insertImage",<br> "viewHtml"<br> ],<br> imageBrowser: {<br> transport: {<br> read: {<br> type: "GET",<br> url: "/api/sites/user-gallery",<br> },<br> destroy: "/api/sites/user-gallery?action=delete",<br> thumbnailUrl: function(path, name) {<br> var pictureUrl = decodeURIComponent(name);<br> return pictureUrl;<br> },<br> uploadUrl: "/api/sites/user-gallery?action=upload", //work if this line is commented<br> imageUrl: function(name) {<br> var pictureUrl = decodeURIComponent(name);<br> return pictureUrl;<br> },<br> }<br> } <br> //, messages: { viewHtml: '@GetText("ViewHtml")'}<br> });<br> }); {"pictureId":1369437,"name":"http://s3.amazonaws.com/nocnokdemo-img/1404301211033c10e4f43bdb468ba132ef12048d2438.jpg","type":"f","size":1024,"url":"http://s3.amazonaws.com/nocnokdemo-img/1404301211033c10e4f43bdb468ba132ef12048d2438.jpg"}I have a webpage that uses Kendomobilelistview control
here -> http://krfrettir.com/App/Result/LatestResult
and this page is using this JSON data call
-> http://krfrettir.com/App/Result/GetLatestResult
But the json return list where LeikDagur(datetime) is in correct order (newest first) but the Kendo view is not using any sorting it takes this json data and randomly prints out the list.
Could someone maybe tell me why this is happening?
kendo.culture("en-US");
kendo.culture().numberFormat.currency.symbol = "£";columns.Bound(c => c.PropertyOfTypeCyrrency).ClientTemplate(" #= PropertyOfTypeCyrrency.CurrencySymbol # #= PropertyOfTypeCyrrency.Value #");columns.Bound(c => c.PropertyOfTypeCyrrency).ClientTemplate("#= kendo.toString(PropertyOfTypeCyrrency.Value, 'C').replace(kendo.culture().numberFormat.currency.symbol, PropertyOfTypeCyrrency.CurrencySymbol) #");