kendo-ui

Convert lambda expression to Json in MVC

断了今生、忘了曾经 提交于 2019-12-02 18:09:51
问题 I get an error ("Cannot convert lambda expression to type 'string' because it is not a delegate type") during converting the lambda expression in controller. I have 3 entities in as below: Entities: public class Student { public int ID { get; set; } public string Course { get; set; } public int CityID { get; set; } public virtual City City { get; set; } } public class City { public int ID { get; set; } public string Name { get; set; } public int RegionID { get; set; } public virtual Region

Jquery Appended Content - Not Clickable

核能气质少年 提交于 2019-12-02 17:36:18
问题 I have the following JQ. It's basically adding a little icon that will allow for some inline editing when a list item is selected. However, I am unable to work with the jquery added content. I cant even log anything to console when I click my JQ added content. Is there something wrong with my code below? I can not add a fiddle, because I dont have a link to the Kendo UI libraries, that this list is using. <script> $(function () { $("#treeview-left li").click(function () { $("div#EditEntity")

Custom sort function kendo grid

一世执手 提交于 2019-12-02 17:28:27
问题 Can anyone please let me know how can we write our own function in javascript for sorting in kendo grid. And do we need to write two functions for asc and desc? Any help.. greatly appreciated! 回答1: You can do it and you don't have to write two different function for ascending and descending since the only thing that you need to do is providing a compare function for the column field that you need a special algorithm. Example: Lets assume that we want to sort a grid by name (a string ) and

Kendo-UI - Creating a Dynamic Form via JSON

浪子不回头ぞ 提交于 2019-12-02 17:26:19
问题 I have been able to successfully build out a dynamic form using JSON and Kendo.Observable, however I cannot initialize the dropdownlist values successfully within the same JSON. The only way I can get it to work is by binding the dropdown lists to a separate json request after creation. See the example below.... Here is an example of some JSON that works (no dropdown list) {"fields": [ {"name" : "FirstName", "label" : "First Name", "type" : "text", "css" : "test"}, {"name" : "LastName",

Why kendo Ui -grid date is not sorting properly?

▼魔方 西西 提交于 2019-12-02 16:53:36
问题 value is ReinsDepositAmount ** output ** i have recently stucked with one of the application date sorting in kendo ui grid. In kendo grid , the column name is define like this Incoming value to ReinsDepositDate - Month,date,year format. 08-23-1991 Field name is ReinsDepositDate: { field: "ReinsDepositDate", type: "date", title: "Due Date",format: "{0:M/d/yyyy}", width: 100, filterable: { cell: { operator: "contains" } } }, When Sorting the date , its sorting based on first values 1/12/1994 23

Reloading kendo ui grid the row item code executes an error

安稳与你 提交于 2019-12-02 14:37:55
问题 I've a web application with kendo ui grid. The grid is load with Bakbone.js when I click a button and I can remove a row with the next code: $(document).on("click", "#grid tbody tr .ob-delete", function (e) { var item = grid.dataItem($(this).closest("tr")); var check = confirm("Do I delete:" + item.City ); if (check) { grid.removeRow($(this).closest("tr")); } }); The cofiguration of the button to delete: command: [ "edit", { name: "destroy", text: "Remove", className: "ob-delete" }] When I

Kendo window.refresh not successfully grabbing partial view

断了今生、忘了曾经 提交于 2019-12-02 13:11:58
问题 all. Thank you in advance. I have a window which much refresh every time a dropdown selection is changed (or button is pressed). The controller is being called upon refresh, but the view is not being called/refreshed, for some reason. Am I missing something fundamental? Window: @(Html.Kendo().Window() .Name("EditWindow") .Title("Edit Contact") .LoadContentFrom("_ContactEdit", "Contacts", new { selectedContact = Model.ContactId }) .Content("Loading...") .Visible(false) .Draggable() .Resizable(

Web Resource in Dynamics 365—Kendo UI destroyed by jQuery loaded by ClientGlobalContext.js.aspx

♀尐吖头ヾ 提交于 2019-12-02 12:37:16
问题 I have been using Kendo UI in web resources for Dynamics CRM for several years. My components require the use of ClientGlobalContext.js.aspx. In version 9.0.2.54 of Dynamics 365 online, I found that the newer version of ClientGlobalContext.js.aspx loads its own version of jQuery without checking to see if one is already present. It does this with a document.write statement, so this version of jQuery is always loaded after my code. I can work around this temporarily by using the JavaScript

Remove HTML from Excel generated from Kendo Grid

心已入冬 提交于 2019-12-02 12:22:36
I'm using the following code to load grid data and for removing the HTML from the footer and group footer in Excel. I'm using the recommended code only but somehow it's not working and there is no change in result as well. var GridParams = function(fromDate, toDate) { var groupSortDirection = groupByPaymentDate.value(); return { id: divReportGrid, showGroup: true, serverSorting: false, url: formUrls.gridUrl, columns: columns(), pageSize: 50, showReport: true, fileName: "Report.xlsx", toolbar: ["excel"], ExcelExport: function(e) { var rows = e.workbook.sheets[0].rows; for (var ri = 0; ri < rows

Kendo Grid: how to update data source from code when the row changes

偶尔善良 提交于 2019-12-02 12:19:41
问题 this follows on from a few of my previous posts, regarding updating the kendo grid datasource. The last thing I want to do is have this occur when the user goes to a new row (thanks to @Lars so far for much impressive help) I am doing this by detecting a row change ( happen to be doing this in a directive), and calling back into the grids controller where I call the sych function on the data source... vm.rowChangedCallback = function () { console.log("calling vm.gridData.sync"); // Calling