I have a DataSource that is the data source for two different kendoDropDownList. Is there a way of accessing the data within the data source? The data source is a address block with a reference as a key and value in the drop down. The Address, City, State and Zip are also present in the data source. How would I access that data without having to pull over another set of the data?
Thanks
Randy
I'm using the kendoChart to display the json result from a controller action. The contoller action is getting called, but the page gives an error after that which is shown at the bottom of this message. I tried to catch the dataBound event to see what is happening. The error is happening even before the event, so can't catch it.
An example or help appreciated for this problem.
Controller Action:
...
return Json(itemCount, JsonRequestBehavior.AllowGet);
Script:
$("#liveChart").kendoChart({
...
dataSource: new kendo.data.DataSource({
transport: {
read: {
url: "/Charts/Orders/GetLiveOrdersCount",
dataType: "json"
}
},
schema: {
data: "data"
}
}),
...
Error:
SCRIPT5007: Unable to get value of the property 'length': object is null or undefined
kendo.all.min.js, line 11 character 46965
HTTP/1.1 200 OKdiv.find('input:file').kendoUpload({ async: { saveUrl: '/SomeController/Action', autoUpload: true }, localization: { "uploadSelectedFiles": "Upload Logo" // TODO: load language specific text }, multiple: false, remove: function (files) { var previewElement = $('#' + item.Uid + 'prev'); previewElement.fadeOut('fast', function () { previewElement.html(''); }); }, select: function (files) { if ((window.File && window.FileReader && window.FileList && window.Blob)) { if (files.files.length && files.files.length > 0) { var file = files.files[0]; var previewElement = $('#' + item.Uid + 'prev'); previewElement.previewImage({ 'file': file.rawFile, 'height': 250, 'width': 250, 'title': 'Some Logo' }); } } }, upload: function (evt) { evt.data = { 'Uid': item.Uid }; }, complete: function (evt) { alert('complete'); }, success: function (evt) {Here is the response as seen in the fiddler tool:alert('success');if (evt.operation == 'upload') { var responseData = evt.response; alert(responseData); } }
<script src="http://ajax.aspnetcdn.com/ajax/jQuery.Validate/1.6/jQuery.Validate.min.js" type="text/javascript"></script>
<script id="template" type="text/x-kendo-tmpl">
<tr>
<td>
<a href="a" class="something" value="#= id #">Show ID</a>
</td>
...$(document).ready(function(){
$('.something').click(function(){
alert($(this).attr("value"));
return false;
});
...