$Elem.children(".table").kendoGrid({ dataSource: data, /* height: "100%", (do not specify height) */ scrollable: true, selectable: true, sortable: true, filterable: true, pageable: false, resizable: true, rowTemplate: kendo.template($chanElem.children(".rowTemplate").html())});var dataSource = new kendo.data.DataSource({ serverPaging: true, pageSize: 10, transport: { read: { // the remote service url // JSONP is required for cross-domain AJAX dataType: "jsonp", // additional parameters sent to the remote service data: { screen_name: "USER_ID" } } }, schema: { // describe the result format data: "results" // the data which the data source will be bound to is in the "results" field }});$("#ResourcesList").kendoComboBox({ index: 0, placeholder: "Search by title/description", dataTextField: "Title", dataValueField: "ResourceID", filter: "contains", template: '<div style="padding: 10px;"><strong>#= Title #</strong>' + '<div style="margin-top: 5px;" class="t1">#= Description #</div></div>', dataSource: { type: "jsonp", serverFiltering: true, serverPaging: true, pageSize: 20, transport: { read: { url: function (kcb) { var strurl="/mysite/GetResourcesList?filtertext=" + $("#ResourcesList").data().kendoComboBox.text(); return strurl; } } } } });alert($("#ResourcesList").data("kendoComboBox").value())I am working with the good example of Editing custom editor under the MVC examples.
It shows how to build a dropdownlist for use when editing a cell in a grid.
I have to create a new post in the grid and I add the following to the file; Editing_Custom.cshtml:
.Create(create => create.Action("EditingCustom_Create", "Grid"))
.ToolBar(toolBar => { toolBar.Save(); toolBar.Create(); })
And I already get an error here before I come to do the coding in the .cs-file.
When debugging with firebug, I get an error from javascript that says: ReferenceError: EnrollTypes is not defined.
EnrollTypes is the class that is used for making the dropdownlist.
Could someone please give me a hint on what I have to do when creating a post in a grid with relational data?
I saw in some forum that Foregin key will sove this problem, but in my case there is no key column which can be named as foreign key. I just want to have a dropdown in grid column and it should also appear when I click on Add New Item button.
Regards,
Nitin
