kendo-ui

Kendo MVVM create new record with remote datasource

核能气质少年 提交于 2021-02-20 00:48:25
问题 I think I'm missing something simple, but I can't find any examples showing how to do this... also, please forgive me if some of the terminology I'm using is wrong. I simply want to use an HTML form that is bound to a Kendo Observable object to create a new record in my remote datasource. All the examples I've seen show how to edit existing records, but that's not what I'm looking for (at least not at the moment). I've created a Fiddle http://jsfiddle.net/matbeard/fYfYz/2/ with a simple cut

Kendo MVVM create new record with remote datasource

感情迁移 提交于 2021-02-20 00:48:24
问题 I think I'm missing something simple, but I can't find any examples showing how to do this... also, please forgive me if some of the terminology I'm using is wrong. I simply want to use an HTML form that is bound to a Kendo Observable object to create a new record in my remote datasource. All the examples I've seen show how to edit existing records, but that's not what I'm looking for (at least not at the moment). I've created a Fiddle http://jsfiddle.net/matbeard/fYfYz/2/ with a simple cut

KendoUI Grid Default Value with Data Annotation

故事扮演 提交于 2021-02-18 12:14:47
问题 I am using Kendo UI Grid with ASP.NET MVC Helpers and auto generated columns. I have [DefaultValue(60 * 60)] annotation in my view model but Kendo helpers doesn't seem to respect that. Can I have default value specified (probably with data annotations) without having to manually describe the columns? 回答1: if you defined the columns in the grid manually, you need to set the default value like this despite you defined the default value in the annotation or not @(Html.Kendo() .Grid() .DataSource

KendoUI Grid Default Value with Data Annotation

微笑、不失礼 提交于 2021-02-18 12:14:05
问题 I am using Kendo UI Grid with ASP.NET MVC Helpers and auto generated columns. I have [DefaultValue(60 * 60)] annotation in my view model but Kendo helpers doesn't seem to respect that. Can I have default value specified (probably with data annotations) without having to manually describe the columns? 回答1: if you defined the columns in the grid manually, you need to set the default value like this despite you defined the default value in the annotation or not @(Html.Kendo() .Grid() .DataSource

How to set selected row programmatically in Kendo Grid + Angular 4?

佐手、 提交于 2021-02-18 11:33:55
问题 I have app on Angular 4 + TypeScript + Kendo UI. Also I have a page with table of users. After editing user I want to highlight user by ID that I edited. users: Observable<Array<User>>; selectedId: number; gridView: GridDataResult; ngOnInit() { this.users = this.route.params .switchMap((params: Params) => { this.selectedId = +params['id']; return this.adminService.getUsers(); }); }); } Also I found in Kendo documentation event with " index " and " selected " fields: selectionChange(event:

simulate a 3 pixel drag on draggable elem

我的未来我决定 提交于 2021-02-18 06:46:05
问题 I am simply trying to simulate a small click and drag on a draggable div elem — I've found several similar questions here on SO but all involving the use of additional plugins... Is there a plain JavaScript or jQuery ability to handle specifically the drag? as I know .click(); or mouse down can be called to initiate. I am not trying to create the ability of a drag and drop, I already have that. I am trying to create a small function that simulates this event automatically. click > hold > drag

Kendo.MVC Filter

雨燕双飞 提交于 2021-02-11 18:12:23
问题 I have a kendo grid which has a kendo filter, I have set extra(false) in the kendo filter and removed the dropdown using the below code. Here the filtering is happening only when I give complete value, instead I need to filter with starting value ---------------------------script start <script type="text/javascript"> function filterMenuInit(e) { var firstValueDropDown = e.container.find("select:eq(0)").data("kendoDropDownList"); setTimeout(function () { firstValueDropDown.wrapper.hide(); });

Kendo.MVC Filter

房东的猫 提交于 2021-02-11 18:12:15
问题 I have a kendo grid which has a kendo filter, I have set extra(false) in the kendo filter and removed the dropdown using the below code. Here the filtering is happening only when I give complete value, instead I need to filter with starting value ---------------------------script start <script type="text/javascript"> function filterMenuInit(e) { var firstValueDropDown = e.container.find("select:eq(0)").data("kendoDropDownList"); setTimeout(function () { firstValueDropDown.wrapper.hide(); });

Parse String (yyyymmm) Format to DateTime?

岁酱吖の 提交于 2021-02-11 16:01:49
问题 I have a field called Accounting Period as char, [AccountingPeriod] [char](6) , how can I parse it to DateTime Format using DatePicker? I used this KendoGrid for DatePicker @( Html.Kendo().DatePicker() .Name(nameof(InvoiceDTO.AccountingPeriod)) .Format("{0:yyyyMM}") .HtmlAttributes(new { @class = "form-control", style = "width:50%" }) ) I have the date: 199805 回答1: Okay, as from the comments I have understood that you have a date in "yyyyMM" format and from that you want the magical line of

Kendo Grid Inline combobox not changing value

自闭症网瘾萝莉.ら 提交于 2021-02-11 14:49:53
问题 I have kendo mvc grid with inline edition. I want to edit my values in grid but when i click on combobox value and change it. It's not changing row value return old existing value How can i solve this? Here my grid and Template @(Html.Kendo().Grid<MockUpForeNet.Controllers.CardDetailController.Limits>() .Name("limitgrid").AutoBind(true) .DataSource(dataBinding => dataBinding.Ajax() .Read("GridLimitBinding", "CardDetail",new { rule = rule }).Update("UpdateLimit", "Transaction") .Model(keys =>