kendo

Kendo Grid cancel edit event

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using the edit event on a Kendo grid to show a couple of hidden columns. I'll then hide them again on the save event. Problem I have is that there doesn't appear to be an event for cancelling edit mode, so the column get screwed up if the user clicks cancel. Is there an undocumented event for cancel or do I need to find a workaround? 回答1: Basically there is no such "Cancel" event, however you can attach click event on the "Cancel" button in the еdit event of the Grid. Please check the example below: function onEdit(e) { e.container.find(

kendo ui Editable color input field on grid

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: As you can see in the code below, i have a grid with editable cells. At the column named "szin" i tired to implement a kendo colorpicker and it works just fine. My problem is, that the colors are only displayed when you try to edit one of the cell. Can i make it permanently displayed somehow? I dont care if the bg-color of the cell change or the dropdown box visible all the time or with any other methods. Here's my code: <!DOCTYPE html> <html> <head> <link href="../styles/kendo.metro.min.css" rel="stylesheet"> <link href="../styles/kendo

typeError: Cannot read property &#039;tigerStart&#039; of undefined

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to typescript and angular js. I tried to include another component code into my code. which is baby.js code into my code but I am getting an error. TypeError: Cannot read property 'tigerStart' of undefined can you guys tell me how to fix it. providing my code below TypeError: Cannot read property 'tigerStart' of undefined at init.open (pen-pencil.ts:1270) at init.trigger (kendo.all.min.js:25) at init.open (kendo.all.min.js:45) at Penguin.openPopup (pen-pencil.ts:1286) at penguin.pencilClicked (headset.ts:689) at _View_penguin4.

kendo ui dropdownlist- How to do manual Cascading?

匿名 (未验证) 提交于 2019-12-03 02:27:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So im currently trying to adapt some previous code to use with dynamic dropdownlists, the problem seems to be that the cascadeFrom property only takes an id. So i need to use another alternative. Here's my code: fieldsDiv.html(dynForms + dynFormFields); var appendedForms=fieldsDiv.find(".dynamicForms"); var appendedFormFields= fieldsDiv.find(".dynamicFormFields"); debugger; $(appendedForms).kendoDropDownList({ dataTextField: "name", dataValueField: "id", dataSource: { type: "json", serverFiltering: true, transport: { read: "${pageContext

Get a reference to Kendo Grid from inside the error handler

匿名 (未验证) 提交于 2019-12-03 02:18:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: There already are questions how to get custom error handling, with answers , but all those answers use 'external' reference/selector to the grid to make it work, for example: function onError(e) { if (e.errors) { var message = "Error:\n"; var grid = $('#gridID').data('kendoGrid'); // <<- here (...) } Is it possible to get the reference to the grid from inside the error handling function without providing the selector by hand or 'externally' (because global variables are meh )? That way the error handling script could be totally self

数据管理必看!Kendo UI for jQuery过滤器概述

筅森魡賤 提交于 2019-12-03 02:15:08
Kendo UI for jQuery最新试用版下载 Kendo UI 目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四个控件。Kendo UI for jQuery是创建现代Web应用程序的最完整UI库。 Kendo UI Filter 小部件是一个统一的控件,用于筛选具有数据源的数据绑定组件。 Filter的用户界面对于没有内置UI进行筛选但需要提供筛选器选项的数据绑定组件很有用,例如ListView,Chart和Scheduler。 您可以添加或删除用于过滤数据的字段,并为每个字段选择过滤器的全局逻辑(AND或OR)和过滤器运算符(例如,包含或等于)。您可以通过内置按钮或API调用应用过滤,还可以选择名称,以这些名称显示给用户并本地化过滤器操作符和消息。 初始化Filter 要使用过滤器,请使用一个空的"div"元素,并在初始化脚本中提供其设置。 下面的示例演示如何: 将Filter绑定到数据源。 在列表视图中显示过滤的数据。 在字段中使用易于理解的名称。 设置初始过滤器表达式。 注意: 您可以使用远程数据源而不是本地数据数组。 在本示例中,为简洁起见,使用了本地数组。 不需要提供字段,因为过滤器可以从数据源中提取它们。

Convert canvas to PDF

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to directly convert canvas to pdf using JavaScript ( pdf.js or something like that)? Is there another possible way like canvas to img and then img to pdf? Can you give me an example? 回答1: You can achieve this by utilizing the jsPDF library and the toDataURL function. I made a little demonstration: var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); // draw a blue cloud context.beginPath(); context.moveTo(170, 80); context.bezierCurveTo(130, 100, 130, 150, 230, 150); context.bezierCurveTo

Reloading/refreshing Kendo Grid

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How to reload or refresh a Kendo Grid using Javascript? It is often required to reload or refresh a grid after sometime or after a user action. 回答1: You can use $ ( '#GridName' ). data ( 'kendoGrid' ). dataSource . read (); $ ( '#GridName' ). data ( 'kendoGrid' ). refresh (); 回答2: I never do refresh . $ ( '#GridName' ). data ( 'kendoGrid' ). dataSource . read (); alone works for me all the time. 回答3: $ ( '#GridName' ). data ( 'kendoGrid' ). dataSource . read (); $ ( '#GridName' ). data ( 'kendoGrid' ). refresh (); 回答4: In a recent

Kendo grid image column

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: working on a MVC4 project, I'm trying to add a column to my kendo grid that displays an image. @(Html.Kendo().Grid () .Name("datagrid_Concessions") .Columns(columns => { columns.Bound(c => c.Code).Title(ViewBag.lblCode); columns.Bound(c => c.Description).Title(ViewBag.lblDescription); columns.Template(@ ).Title("Image"); }) I've tried that but no luck. Also tried: columns.Template(@ ).Title("Image"); The images aren't shown, whether I define the image src in the controller or write it directly in the view. I've checked both this and this

Uncaught TypeError : cannot read property &#039;replace&#039; of undefined In Grid

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm new in using Kendo Grid and Kendo UI . My question is how can i resolve this Error Uncaught TypeError: Cannot read property 'replace' of undefined This is my Code on my KendoGrid $("#Grid").kendoGrid({ scrollable: false, sortable: true, pageable: { refresh: true, pageSizes: true }, dataSource: { transport: { read: { url: '/Info/InfoList?search=' + search, dataType: "json", type: "POST" } }, pageSize: 10 }, rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')), altRowTemplate: kendo.template($("#rowTemplate").html())