Hi,
We are trying to display data from a wfc data service, in a Kendo treelist UI control. The data bind is not happening and "request failed" keeps showing up. From what we saw it seems to be an issues due to the format of the data although type = 'jsonp' has been specified. Could you please guide us with some of the version requirements for the entity framework and if we need to explicitly do anything in the data service to get the right format. In the data that the service returns the header - "d":[{"__metadata"] is seen.
Thanks!!
Hey guys,
i have a dropdown and after select i can edit the selected entry in a form (like http://demos.telerik.com/kendo-ui/mvvm/remote-binding). In the form is another dropdown that depends on another datasource, but the selected value is based on the first on. But if i send a save, then the whole Objekt from the second dropdown is send (something like {ID:"1",text:"abc",check:"true"}) and not the ID only. How can i achieve, that only the ID would be send?
The code vor the observable for the first dropdown which delivers informations for the form:
$(document).ready(function() { var objectViewModel = kendo.observable({ objectSource: new kendo.data.DataSource({ transport: { read: { url: '" . $config['odata_url'] . "Objects?\$filter=ID eq \'" . $_GET["id"] . "\'', dataType: 'json', type: 'GET', contentType: 'application/json', complete: function (jqXhr, textStatus) { if (textStatus == 'success') { $('#windowPopupNotification').data('kendoNotification').show('Data loaded successfully (Object)', 'success'); } else { $('#windowPopupNotification').data('kendoNotification').show('Error while loading data (Object)', 'error'); } } }, update: { url: '" . $config['odata_url'] . "Objects(\'" . $_GET["id"] . "\')?lang=de', dataType: 'json', type: 'MERGE', contentType: 'application/json', complete: function (jqXhr, textStatus) { if (textStatus == 'nocontent') { $('#windowPopupNotification').data('kendoNotification').show('Data saved successfully (Object)', 'success'); } else { $('#windowPopupNotification').data('kendoNotification').show('Error while saving data (Object)', 'error'); } } }, parameterMap: function(options, operation) { if (operation !== 'read' && options) { return kendo.stringify(options); } } }, batch: false, schema: { data: 'd.results', model: { id: 'ID' } } }), selectedObject: null, save: function() { this.objectSource.sync(); }, reset: function() { this.objectSource.read(); }, close: function() { gridItemDetailsWindowClose(); }, showForm: function() { return this.get('selectedObject') !== null; }, }); kendo.bind($('#objectForm'), objectViewModel);});The PHP code for the dropdown in the form.
$DropDown = new \Kendo\UI\DropDownList('DropDownID');$DropDown->autobind(true) ->attr('data-bind', 'value: selectedObject.ID') ->attr('data-value-field', 'ID') ->attr('data-text-field', 'Name') ->dataSource($myDataSource);
Thanks a lot!
Chris
I have to change sorting icon and filter icon with with bootstrap glyphicon. Also how can i customize filter menu.
My example: http://dojo.telerik.com/oWABE/3
Here I have a data object containing "status" which is an integer! (it is 1,2 or 3)
In my Grid that masks to New, Pending and Closed
To show the strings (New, Pending and Closed) I have created a parse function in the shema -> for filtering to work on the parsed values one cannot use a template in the columns definition, but has to parse it in the datasource!
Status: { type: "int", parse: function(status) { console.log(status,"stat"); switch(status){ case 1: return"New"; break; case 2: return"Pending"; break; case 3: return"Solved"; break; case 5: return"Closed"; break; } }}, There is a "console.log" when this parser gets called and what I notice is that AFTER! I filter for "New" the log reads:
n statundefined "stat"
...when I first run the page the log reads (as expected):
1 "stat"2 "stat"3 "stat"The Filter does not work (try filtering for "New" as an example)
Hi, I have a problem with charts where the maximum values of a series are "just above" a multiple of the unit on the y-axis. I've set up a minimal example at
http://dojo.telerik.com/uqIME/2
You will see that the two data points are above the maximum value shown on the y-axis, and the data markers are partly obscured. I would expect the y-axis to be extended so that the data points are within its range (e.g. Excel has a max of 1200 on the y-axis for the same series).
I suppose I could work around this by calculating and explicitly setting the maximum, but it would be better if the chart could do this itself. Or is there some other setting I can use to force it?
Thanks
Andrew
I just want to disable all hover text for the column heading. However with the code below a nuisance hover text of the column title appears when the mouse is over the column heading.
The datasource for the grid is built by cursoring a datasource from another API and building the local data source on the fly, in case that offers a clue...
The results are shown in the attached png
columns: [{
field:"Source",
title: "Source BOGUS", // causes the hover problem
filterable: false,
sortable:true
},{
field:"Name",
filterable: false,
sortable:true
},{
field:"findResultPayload",
headerAttributes: {
style: "display: none"
},
filterable: false,
width: 50,
hidden: false,
template: '<img src="images/zoom.png" width="16" height="16"/>'
}
]
TIA
