kendo-grid

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:

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(); });

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 =>

Enfocing min width on Kendo Grid (jQuery) when grid has hidden columns

时间秒杀一切 提交于 2021-02-10 14:24:36
问题 I am trying to enforce a min-width rule for resizable columns in the Kendo Grid. I used the sample that they provided here. In their example all of the columns are being displayed. In my case there are some columns which are hidden. I have a sample here using Kendo's Dojo to illustrate my problem. Any column that comes after the hidden column no longer maintains the min-width rule. Best I can figure is that this is an issue with jQuery and it's interactions with elements that have been set to

Enfocing min width on Kendo Grid (jQuery) when grid has hidden columns

早过忘川 提交于 2021-02-10 14:23:22
问题 I am trying to enforce a min-width rule for resizable columns in the Kendo Grid. I used the sample that they provided here. In their example all of the columns are being displayed. In my case there are some columns which are hidden. I have a sample here using Kendo's Dojo to illustrate my problem. Any column that comes after the hidden column no longer maintains the min-width rule. Best I can figure is that this is an issue with jQuery and it's interactions with elements that have been set to

Kendo grid button click arguments

跟風遠走 提交于 2021-02-10 05:27:47
问题 I have a kendo grid with a button column. When the button is clicked, I want it to call a javascript function with the row's data as parameters. Here's what I have so far $(grd).kendoGrid({ dataSource: ds, detailInit: detailInit, columns: [ {field: "foo", title: "bar" }, {field: "Y" }, {command: { text: "MyButton", click: doStuff } } ] }); function doStuff(e) { //e is click events but I want to pass in data from the row instead //following is code I found here but item is null for me var row

Kendo mvc grid InLine Edit Mode DateTimePicker Template gives Error

穿精又带淫゛_ 提交于 2021-02-08 20:37:47
问题 I am using Kendo UI mvc grid for Data listing. I am making InLine Editing in this Grid.I am using EditorTemplate for DateTime field, so that it will give datetimepicker for DateTime field in InLine Edit Mode.When i am going to Click on Update button, it will give me Validation message like this : 'The must be a date' columns.Bound(k => k.SevenDaysFrom).Format("{0:dd.MM.yyyy}").EditorTemplateName("DateTime").Width(30); columns.Bound(k => k.SevenDaysTo).Format("{0:dd.MM.yyyy}")