kendo-ui

Kendo Grid Custom Toolbar button Enable/Disable

此生再无相见时 提交于 2020-02-02 16:24:31
问题 I have a kendo grid with save button in the Tool bar panel. I have a proposed discount column which is editable and if the user enters whole numbers between 0 and 100(excluding decimals) , the save button should be visible or enabled otherwise invisible or disabled. I was able to achieve making the button invisible or disable but when they enter correct value, the button was not getting visible or enabled. Please help me. I just started working on Kendo UI recently. function setEnabled

Is it possible to copy a grid datasource to a new datasource, a new datasource that loads all data?

筅森魡賤 提交于 2020-02-02 12:29:06
问题 Is it possible to copy a grid datasource to a new datasource, a new datasource that loads all data? For example I have a kendo grid which has a page size of 10, how would I copy it into a new datasource which will load all the data and ignore the paging. 回答1: Some aspects might depend on how did you define the DataSource of the first (pageable) datasource. But basically you need to copy the original data source, then change the value for pageSize and serverPaging and finally assign it to the

Loop through multiple array and keep count of each element

只愿长相守 提交于 2020-01-30 11:00:50
问题 My JSON looks something like this: [{ "Name": "Test Post", "Id": 123, "ProductHandlingTypes": [{ "Id": 1, "Name": "Type 1" }, { "Id": 2, "Name": "Type 2" }] }, { "Name": "Test Post 2", "Id": 124, "ProductHandlingTypes": [{ "Id": 3, "Name": "Type 3" }, { "Id": 1, "Name": "Type 1" }] }] So, in essence, I would like to be able to loop through all of the post's product handling types and compare them to a list of product handling types and anytime there is a match, I would like to keep track of

Kendo UI dropdownlist mobile scrolling

不打扰是莪最后的温柔 提交于 2020-01-25 18:08:18
问题 I am currently developing an application using Kendo UI. I use a dropdownlist like this Kendo UI dropdownlist On the browser it work's fine. I can open the list an scroll with the mousewheel, but when I try to use it on a device with touch (tablet or smartphone) i cannot scroll in the dropdownlist. How can i add a listener or something else on the dropdownlist, that this makes it possible to scroll? 回答1: From here: Kendo Support Forum - Unable to scroll on iPad To enable scrolling of the

Kendo UI grid, issue saving new record (AngularJS)

為{幸葍}努か 提交于 2020-01-25 11:52:04
问题 I have an order line grid with a custom edit form, whose fields are pre-populated for adding a row. I thought I had this working based on help I received from this question: How to populate add-row form programmatically for Kendo UI grid (AngularJS) However, though it works in the simplified plunker, there are a couple of issues when trying to implement it in a real project. Here is an updated plunker to show the issues below: http://plnkr.co/edit/wtW4RzVu7uuhrJJbWvVd?p=preview Here is the

Kendo UI grid, issue saving new record (AngularJS)

我与影子孤独终老i 提交于 2020-01-25 11:51:19
问题 I have an order line grid with a custom edit form, whose fields are pre-populated for adding a row. I thought I had this working based on help I received from this question: How to populate add-row form programmatically for Kendo UI grid (AngularJS) However, though it works in the simplified plunker, there are a couple of issues when trying to implement it in a real project. Here is an updated plunker to show the issues below: http://plnkr.co/edit/wtW4RzVu7uuhrJJbWvVd?p=preview Here is the

kendo grid - navigate and enter cells with arrow keys

£可爱£侵袭症+ 提交于 2020-01-25 01:01:08
问题 How can I achieve the following, when arrow keys are pressed it should go to the curresponding cell and enter the cell so the user can start typing right away without having to enter the cell first, and if the arrow keys are pressed in a numeric cell it should ignore the default behavior of adding or subtracting numbers and instead go to the upper or lower cell in the next row. EDIT : Here is the code I came up with but it only works sometimes and sometimes it will skip a cell or two, any

Kendo UI Jsonp example with wordpress json plugin

空扰寡人 提交于 2020-01-24 14:04:04
问题 Problem overview: I am trying to adapt a kendo UI data-binding example to use my own jsonp request. Detailed Description: I am basing my project off of a data-binding example here. I created this jsfiddle , which represents the correctly working example I wish to emulate. I am hoping to utilize JSONP according to the kendo datasource docs. I am relying upon this json api plugin for wordpress. I know the json query works when I put this : http://www.techhelix.com/?json=get_post&id=1/ into the

Kendo UI/jQuery click event running multiple times

懵懂的女人 提交于 2020-01-23 16:40:32
问题 I'm using telerik's jQuery software called Kendo UI, to create a modal popup window. I'm having a rather odd problem with a Kendo modal popup box, which contains a "Confirm"/"Cancel" confirmation. The first time I open the confirmation window & click either button (Confirm or Cancel), the window works correctly. The 2nd time I open this popup window & click a button, my Kendo's "click" event fires twice. The third time I open the window, the click event fires 3 times, etc. I can't figure out

kendo ui - why do button click refresh the page?

左心房为你撑大大i 提交于 2020-01-23 08:42:29
问题 Please find below my code: Template of customer search form <script type="text/x-kendoui-template" id="customer-search-view-template"> <div class="searchform" id="searchCustomer"> <form class="frmSearch"> <input name="searchTxt" data-bind="value: customerName" class="k-textbox" /> <button class="k-button" data-bind="click: searchClicked">Search</button> <button class="k-button" data-bind="click: newClicked">New</button> </form> </div> </script> customer-search.js where loading above template