kendo-grid

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

How to clear data on kendo ui angular 2 grid

孤街醉人 提交于 2020-01-23 17:02:07
问题 I'm looking for a way to clear the Kendo UI Grid for Angular 2 if the user navigates another page or simply logout. I have tried clearing the observable to null and it is not good and i couldn't fill data after all. Can anyone suggest me a better way? 回答1: You can set the view to empty array using either =Observable.empty() or =Observable.from([]) but you will need to rebind the service back again if you want to fetch data. This is why the easiest way will be to just call .next([]) and then

Refresh after update Telerik Kendo Grid (MVC)

雨燕双飞 提交于 2020-01-23 02:07:06
问题 I have a Kendo Grid with some environments data. One of the fields of the grid is "isDefault" wich recieve 1 or 0 (for true or false). In the database I have a trigger that when some record is set to isDefault = 1 any other record is update to isDefault = 0, just to make sure there is only one default environment. The Kendo grid is working fine, it binds the data and updates the records just fine but after the update, the grid is not refreshing all the records and if there was, lets say,

Refresh after update Telerik Kendo Grid (MVC)

匆匆过客 提交于 2020-01-23 02:06:36
问题 I have a Kendo Grid with some environments data. One of the fields of the grid is "isDefault" wich recieve 1 or 0 (for true or false). In the database I have a trigger that when some record is set to isDefault = 1 any other record is update to isDefault = 0, just to make sure there is only one default environment. The Kendo grid is working fine, it binds the data and updates the records just fine but after the update, the grid is not refreshing all the records and if there was, lets say,

Retain expanded rows after databinding Kendo UI grid

拜拜、爱过 提交于 2020-01-22 16:49:48
问题 This is my first time working with Kendo UI. I have a Kendo UI grid with child nodes. I want to retain the expanded rows after databinding. Right now its getting collapsed after a row is added in the child I have tried suggestion from here dataBound: function() { this.expandRow(this.tbody.find("tr.k-master-row").first()); } But this expands the first row only. How to retain rows? What am I missing? Codepen 回答1: After a lot of playing around with your code example in CodePen, I believe I've

Retain expanded rows after databinding Kendo UI grid

我与影子孤独终老i 提交于 2020-01-22 16:49:25
问题 This is my first time working with Kendo UI. I have a Kendo UI grid with child nodes. I want to retain the expanded rows after databinding. Right now its getting collapsed after a row is added in the child I have tried suggestion from here dataBound: function() { this.expandRow(this.tbody.find("tr.k-master-row").first()); } But this expands the first row only. How to retain rows? What am I missing? Codepen 回答1: After a lot of playing around with your code example in CodePen, I believe I've

Kendo UI Grid: Select single cell, get back DataItem, and prevent specific cells from being selected?

…衆ロ難τιáo~ 提交于 2020-01-22 15:11:45
问题 I've got a Kendo UI Grid displaying a set of data and I need to be able to select specific cells (cells in specific columns), and when selected, return the DataItem for the row the selected cell is in, and the property of that DataItem that was clicked on. I don't know if this is possible, but I've been working on it all day and have concluded that I need some help. Here's my grid and dataBound function, which currently gets me the DataItem, but that's it: var hhGrid = hhDiv.kendoGrid({

Not understanding this kendo template that generates a checkbox in a grid

旧巷老猫 提交于 2020-01-21 12:15:17
问题 I'm not understanding something basic about Kendo templates, so maybe someone can explain this to me. This example of a template for a cell in a grid comes from Telerik sample code. template:"<input type='checkbox' #= IsAdmin ? checked='checked':'' # /> Ultimately, this produces an input tag which, if the value of IsAdmin is true, will include "checked='checked'" I don't understand the evaluation context of #= IsAdmin ? checked = 'checked' : '' # Documentation says that "#=" indicates "render