kendo

Kendo grid date column not formatting

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a KendoGrid like below and when I run the application, I'm not getting the expected format for date column. $ ( "#empGrid" ). kendoGrid ({ dataSource : { data : empModel . Value , pageSize : 10 }, columns : [ { field : "Name" , width : 90 , title : "Name" }, { field : "DOJ" , width : 90 , title : "DOJ" , type : "date" , format : "{0:MM-dd-yyyy}" } ] }); When I run this, I'm getting " 2013-07-02T00:00:00Z " in DOJ column. Why it is not formatting? Any idea? 回答1: I found this piece of information and got it to work correctly.

Kendo grid batch editing - making a single call to save

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: With Kendo grid batch editing turned on, I know that you can hook into the create, update and destroy commands where Kendo will send 3 separate commands to the server when you click on Save Changes. I was wondering if there was any way to send all three sets of updates as a single call to the server -like a transaction. Or even send each in a specified order, with a check for success before sending the next . The only way I could come up with was to have a custom Save Changes implementation which ,when invoked, would lookup the

Send Additional Parameter in Kendo Grid Read Action

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a kendo Grid as follows. @( Html . Kendo (). Grid () . Name ( "WeeklyRevenue" ) . Resizable ( resizing => resizing . Columns ( true )) . Columns ( columns => { columns . Bound ( p => p . Number ). Width ( 100 ); columns . Bound ( p => p . Type ). Width ( 100 ); columns . Bound ( p => p . Week1 ). Format ( "{0:c}" ); columns . Bound ( p => p . Week2 ). Format ( "{0:c}" ); columns . Bound ( p => p . Week3 ). Format ( "{0:c}" ); columns . Bound ( p => p . Week4 ). Format ( "{0:c}" ); columns . Bound ( p => p . Week5 ). Format (

Kendo UI Grid Update button not firing

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing a KendoUI Grid with Inline editable option in javascript and can't make Update button to fire click event and post the data to server side update event. Clicking on Update button won't even update the grid on client. Hope someone can help me point out what I am doing wrong here. This is not a duplicate to this as I have tired the jfiddle link in the answer and it is not working too. kendo UI grid update function wont fire <div id="grid"></div> @section Scripts{ <script type="text/javascript"> $(function () { var dataSource =

Kendo sortable : cannot edit text input inside of the sortable table

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have following sortable table with sortable rows by using: http://demos.telerik.com/kendo-ui/sortable/events <tbody class = "playlist" kendo-sortable k-placeholder = "placeholder" k-hint = "hint" > <!-- IF NOTHING IS FOUND--> <tr ng-if = "projectDetail.projectOrderViewConfiguration.projectEntries.length == 0" > <td colspan = "9" ><h1> {{ 'ADD_SOME_ITEMS_FROM_LEFT_COLUMN' | translate }} </h1></td> </tr> <!-- ELSE WRITEOUT--> <tr ng-repeat = "projectEntry in projectDetail.projectOrderViewConfiguration.projectEntries" > <td> <input

Kendo DatePicker Max date issue

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a two kendo DatePickers to select start and end date of a job. job consists of multiple tasks which contains its own completion date (tasks are listed in a grid with kendo DatePicker for each record to select the completion date) I set max and min of each task when user sets the job start and end date. I use kendo to bind data with kendo (through kendo knockout). problem is when user clears the end date of a job,I set the max date of task level DatePicker to (2099, 11.31), but when I click on the task level datepicker I cant navigate

Kendo Ui draggable like windows desktop

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to simulate a desktop icon drag and drop, i do this: $(".draggable").kendoDraggable({ container: $("#desktop"), hint: function() { return $(".draggable").clone(); }, dragend: function(e) { console.log(e); console.log(e.currentTarget.attr("src")); e.currentTarget.css("top",e.y.location); e.currentTarget.css("left",e.x.location); } }); but im not sure if is a nice way and the drag roll back effect break my solution. Hava a simple way to do this with KendoUI (No Jquery UI draggable). Any Help! 回答1: I did this in the past as follow:

Kendo Grid filter to use combo box with column.values rather than drop down list

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to get Kendo's Grid to show a filter using a combo box rather than a drop down list when used with values. What I mean is, on the grid columns array, each column can be given a list of values (objects with text and value properties) for each possible entry in the database, thereby rather than showing a code, it shows a recognisable name or text instead of the code. The problem is that whenever I specify values against the column, the filter reverts to a fixed list of criteria and a drop-down list, which I don't want. See an

Kendo UI Datasource - Filter on releated data

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having trouble filtering a kendo data source on related data (many to many). I am using ASP.NET WebAPI2 and DataSourceRequest to catch the request on the server. The data is then fetched using the .ToDataSourceResult() extension method on an IQueryable. I am aware of this article http://blogs.telerik.com/kendoui/posts/12-11-29/the_facts_on_using_kendo_ui_with_asp_net_webapi My Data is structured as follows:- Customer -> CustomerAddress -> Address Where CustomerAddress is the join table between the Customer & Address tables. There is a

Kendo UI Grid Refesh on Dropdown Selection

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a grid where each row has a select drop down box in with values. When an item is selected, how can I make the grid reload to reflect the change? The reason I want to do this is because the item selected from the drop down effects an amount in another column. Here is the code for my dropdown: function shippingModelSelect(container, options) { $('<input required data-text-field="modelName" data-value-field="modelId" data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ autoBind: false, dataSource: [ {