We are trying to use the grid with embedded detail grid when the use opens the selected line, but want to load just the detail data for the opened master record that is related to the detail.
So when the user opens master line 1, it loads the data for detail of line 1, then when they open master line 2, it loads the data for that master's detail grid.
I can find how to filter all the details for all masters, but if we have hundreds of masters with thousands of related detail records, we don't want to load all those.
Is there a way to assign a different data set to each opened detail grid?
Thanks for any ideas
I have a toolbar with a dropdownlist in it, based on this example: http://demos.telerik.com/kendo-ui/toolbar/index
When I try to disable the dropdownlist within the toolbar, I get the following error on the console:
"TypeError: n.twin is not a function"
I only see this error when I use the "Kendo 2015 Q2" library. "Kendo 2015 Q1 SP2" and previous do not issue an error
See my snippet here: http://dojo.telerik.com/@dhughes/UqAci
Please let me know what I am doing wrong. Any and all help is greatly appreciated!
Not sure if this is a vb.net or datasource issue but am trying here.
I'm using vb.net and am having an issue when i try to send the updated data back to the server. I've found there to be a number of idiosyncrasies with connecting to .net so perhaps this is another one.
When I try to receive the data, it says it the method name isn't valid only when I try to assign the data to a variable. For example I'm able to send along a parameter to one function with an Int. And I can call the update function with no receiving parameter, but when I try to send along the data object it fails.
VB.Net code:
Works when accepting an int.
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _Public Function GetFullRecords(projectID as Integer) As List(Of fullRecords) return loadFullRecords(loadMonths(projectID), loadHeaders(projectID) , loadDetails(projectID) ) End FunctionAnd the broken one works fine if I don't accept anything
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _Public Function UpdateFullRecords() As String return "gotData"End Function
But as soon as I try to accept those records it fails
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _Public Function UpdateFullRecords(models as List(of fullRecords) ) As String return "gotData"End Function System.InvalidOperationException: UpdateFullRecords Web Service method name is not valid.
Datasource code:
dataSource = new kendo.data.DataSource( { transport: { read: { url: baseUrl + "gridData.asmx/GetFullRecords", type: "POST", contentType: "application/json; charset=utf-8", headers: {"Accept": "application/json"} }, update: { url: baseUrl + "gridData.asmx/UpdateFullRecords", type: "POST", dataType: "json" headers: {"Accept": "application/json"} }, parameterMap: function(options, operation) { if(operation === "read") var values = {projectID: 32}; return kendo.stringify(values); } else if (operation !== "read" && options.models) { console.log("Not Read - " + operation); return{fullRecords: kendo.stringify(options.models)}; } } }, schema: { parse: function (data) { return data.d; }, model: { id: "headerID", fields: mySchemaFields } } });
Hi,
I'm trying to implement dynamic windows using angular + kendo window by pointing ng-repeat to the collection of urls (here is the full sample: http://dojo.telerik.com/INeFO/2):
<div kendo-window="win" k-title="'AJAX content'" ng-repeat="form in forms track by $index"
k-width="600" k-height="200" k-visible="true"
k-content="{ url: form }"
></div>
Everything works ok during initialization. But when new item is added to the forms collection in runtime, new window is being opened ok, but the existing windows become corrupted - they lose their content, please see the dojo link.
So the question is - is it possible to get it working somehow and is it a bug or I'm doing something wrong?
Hello,
My model is
model: {
id: 'id',
fields: {
id: {type: 'number'},
parentId: {field: "parentId", nullable: true},
// some other fields
}
}
When I edit item from my datasource and call dataSource.sync() in dataSource update request value of parentId parameter is empty. Than when I receive the response with parentId: "" treelistview deletes the corresponding row.
How can I manage to send parentId with null value to server?
Thanks in advance
Hi,
I am not sure whether I should ask this question here or not.
But the combo box is not rendering properly in Visual Studio LightSwitch. It seems a JQuery Mobile issue more than LightSwitch though. However not being an expert in JQM it is becoming difficult for me to solve this. The JQuery version LightSwitch uses is 1.9.1 and the JQuery Mobile version it issues is 1.3.0.
Please see attached file for the issue.
Thanks.
Hi All,
Could anyone explain why I can't enter values in filter text box as shown in the attachment. Here is my script
var grid = $("#grid").kendoGrid({
dataSource: ds,
height: 250,
pageable: true,
selectable: "row",
resizable: true,
groupable: true,
sortable: true,
filterable: true,
columns: [
{ title: "col1", field: "col_1", width: 80 },
{ title: "col2", field: "col_2", width: 80 },
{ title: "col3", field: "col_3", width: 120 }
]
})
;
TIA
I am using Typescript to define objects that extend the kendo.data.ObservableObject type. These objects contain getter and setter properties. When I pass an array of these ObservableObject-derived objects into the DataSource data property and when I specify a schema.model value, I lose all the getter and setter properties on my objects, such that the grid does not display any values properly. The only fields left available in the DataSource object are the private properties. I made an example here:
http://dojo.telerik.com/ozuHI
Please comment out the commented section at the bottom to see the problem occur.
The PersonDTO definition in my example is the same code that gets generated by Typescript when I define a class that extends kendo.data.ObservableObject in Typescript. The getters and setters are defined on PersonDTO.prototype rather than on PersonDTO itself and I suspect that is the source of the problem. Internally, DataSource seems to be ignoring properties that are not found on PersonDTO directly whenever it wraps an object in a model object.
I would appreciate any ideas for workarounds or a bug fix. Thanks!