kendo-ui

Export to PDF with Chinese languages

跟風遠走 提交于 2019-12-24 12:35:11
问题 I had a Grid that contain a chinese language. The problem occur when I want to export the data into PDF. It seem appear a weird characters (image below) or something like this . Can anyone help me to solve the issue? Here I provide a DEMO in dojo 回答1: Found a solution, using kendo.pdf.defineFont I need to download Arial Unicode MS font then place into a folder. By using defineFont I used this code. <script> kendo.pdf.defineFont({ "Arial Unicode MS" : " +your url path+ / +font folder location+

KendoUI Grid with MVC Wrappers and Web API

余生长醉 提交于 2019-12-24 12:12:46
问题 I'm using Kendo UI grid with ASP.Net MVC Wrappers. My grid datasource is defined as follows: .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(p => p.Code); }) .Read(read => read.Url("api/ProjectMilestone").Type(HttpVerbs.Get)) .Create(create => create.Url("api/ProjectMilestone").Type(HttpVerbs.Post)) .Update(update => update.Url("api/ProjectMilestone").Type(HttpVerbs.Put)) .Destroy(destroy => destroy.Url("api/ProjectMilestone").Type(HttpVerbs.Delete)) ) So one would

How can we implement select All option in Kendo MultiselectFor

孤人 提交于 2019-12-24 12:09:22
问题 How can we implement select all option in Kendo Multiselect For? @(Html.Kendo().MultiSelectFor(model => model.TestData) .DataTextField("DataText") .DataValueField("DataValue") .Placeholder("Select..") .Events(e => e.DataBound("CheckIfEmpty")) .AutoBind(false) .Enable(false) .DataSource(source => { source.Read(read => { read.Action("Action", "Controller").Data("filterData"); }) .ServerFiltering(false); }) ) 回答1: Please check below code snippet. <!DOCTYPE html> <html> <head> <meta charset="utf

Is it possible to show multiple tooltips at the same time?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 11:25:00
问题 I have the following implementation. It works and functional. When user hovers the mouse on the bar chart and if there are common/paired objects, the corresponding objects' bar border color are highlighted. However, I would like to know whether or not there is a way to show tooltip at the same time across the paired objects. i.e multiple tooltips at the same time for paired objects. seriesHover: function (e) { console.log(e); var fname = e.dataItem.fname; var ser = fnameMap[fname]; var

Kendo Grid MVC: default filter for string fields is set to “is equal to”

烂漫一生 提交于 2019-12-24 09:37:27
问题 Kendo Grid has default filter for "dt" field "is equal to" with calendar. For "name" field it has default filter "is equal to", but I want to move "Contains" to a first place of an option list and make it default for strings. How could it be implemented? public class MyClass { public DateTime dt { get; set; } public string name { get; set; } } @(Html.Kendo() .Grid<MyClass>() .Name("grid") .DataSource(data => data.Ajax() .ServerOperation(false) .Read(read => read.Action("MyAction",

What is the difference between Kendo UI Core and Kendo UI Mobile?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 08:13:32
问题 I understand that Kendo UI mobile (15 controls) are included as part of Kendo UI core package, but I need to understand the difference. Can I use the kendo UI controls (non-mobile) to develop a SPA hybrid mobile app or I am only limited to the 15 mobile controls? So far my understanding is that I can use all of the 40+ but the mobile controls provides better data binding support and native rendering... Please correct me if I am wrong. 回答1: The mobile controls are built specifically for hybrid

How to change edit mode(pop-up+inline) dynamically in kendo ui grid on click of button in grid?

匆匆过客 提交于 2019-12-24 07:13:02
问题 I am using mvc4 application .On one of my page i am using kendo grid.I want to add two buttons for editing, one is used for editing in pop-up and other for inline editing. I want to change the grid edit mode dynamically on click of button. Can any one help me out ? 回答1: You cannot have two editing modes at a time. As a work-around you can use the InLine editing + template column with a button inside which on click opens a window. You can set the content of the window to be a template and bind

Kendo UI DatePicker does not let the user select a date

一笑奈何 提交于 2019-12-24 06:53:51
问题 I am using Kendo DatePicker with MVC 3 (VB.NET, Razor syntax) in IE 7. When i click on the datepicker it does not let me select the date. By default, today's date is selected. If i run the same code on Google chrome, it works fine. Also i investigated this issue using IE developer toolbar for IE 7, and it's showing that "Unselectable" for the datepicker is set to "On". I have no idea how can i switch it off. I can browse the months or years in the datepicker but can't actually select a date.

Kendo UI DatePicker does not let the user select a date

泪湿孤枕 提交于 2019-12-24 06:53:49
问题 I am using Kendo DatePicker with MVC 3 (VB.NET, Razor syntax) in IE 7. When i click on the datepicker it does not let me select the date. By default, today's date is selected. If i run the same code on Google chrome, it works fine. Also i investigated this issue using IE developer toolbar for IE 7, and it's showing that "Unselectable" for the datepicker is set to "On". I have no idea how can i switch it off. I can browse the months or years in the datepicker but can't actually select a date.

Presetting kendo DataSource PageSize to “All”

萝らか妹 提交于 2019-12-24 06:40:32
问题 Whenever a user changes the pagination on a grid, I save the setting in localStorage and retrieve it to set it back whenever the user navigates again to the page. To retrieve it I am using the pageSize property of the dataSource where I pass an IIF like so: pageSize: function () { var pageSize = 10; if (window.localStorage) { var userPreferencePageSize = localStorage.getItem("somegridPageSize"); if (userPreferencePageSize === parseInt(userPreferencePageSize)) { userPreferencePageSize =