kendo-ui

i want expand and collapse row on select in kendo grid for MVC UI

左心房为你撑大大i 提交于 2020-05-17 08:51:27
问题 i am trying to expand row on select and collapse same row on click by using Kendo Grid for Mvc UI ,, How to Check the CSS class of the arrow icon in the selected row - k-plus status ,, in the other words i would like to check if selected row is expanded or not. 回答1: Use this script: selectable: true, change: function() { let $row = this.select(); if ($row.length && $row.find('[aria-expanded="true"]').length) { this.collapseRow($row); } else { this.expandRow($row); } } It checks if the row is

How to hide or show the columns in Kendo grid conditionally

不羁岁月 提交于 2020-04-30 05:01:17
问题 We usually write this if we have to hide a column in kendo grid. { field: "Name", hidden: true }, but I want to use condition in the hidden. The true or false would come from database in another field i.e HideShow. Is there any option if I can set this. { field: "Name", hidden: HideShow}, HideShow = true/false will be set while getting records from database. I have tried hide and showing by jquery also but it is distorting the grid layout while showing. Hide is working fine. 回答1: Define a

How to hide or show the columns in Kendo grid conditionally

隐身守侯 提交于 2020-04-30 04:59:24
问题 We usually write this if we have to hide a column in kendo grid. { field: "Name", hidden: true }, but I want to use condition in the hidden. The true or false would come from database in another field i.e HideShow. Is there any option if I can set this. { field: "Name", hidden: HideShow}, HideShow = true/false will be set while getting records from database. I have tried hide and showing by jquery also but it is distorting the grid layout while showing. Hide is working fine. 回答1: Define a

Kendo Grid Inline edit kendo timepicker not changing value

混江龙づ霸主 提交于 2020-03-25 17:49:18
问题 Hi I have grid with inline editing when i want to click cell to update i can see my timepicker and i can select value but when i pass next cell value is disappearing and not select or changing anything How can i solve it? @( Html.Kendo().Grid<MockUpForeNet.Controllers.CardDetailController.Days>() .Name("timegrid") .DataSource(d => d.Ajax().Read("TimeGridBinding", "CardDetail", new { rule = rule }).Update("UpdateTime","CardDetail").Model(keys => { keys.Id(k => k.DayId); keys.Field(c => c

How to pass array object as a parameter in kendo datasource read methods?

人盡茶涼 提交于 2020-03-05 06:08:18
问题 I am trying to send array object to mvc controller from kendo datasource read methods and unable to bind parameter studentId in GetAllStudentDetails Methods. var studentId=[1,2,3] var preSelectStudentDataSource = new kendo.data.DataSource({ transport: { read: { url: '/Manage/Students/GetAllStudentDetails', dataType: "json", contentType: "application/json;charset=utf-8", data: { studentId: studentId} } }, schema: { success: "success", message: "message", data: "data", model: { id: "StudentId"

How to display Validation error message in controller using Kendo grid?

独自空忆成欢 提交于 2020-02-05 04:25:06
问题 I made the fields in the kendo grid editable by the following code: Html.Kendo().Grid(Model.lstResend) .Name("ResendFlowGride") .Columns( column => { column.Bound(e => e.FLOW_ID).Title("Id").Hidden(true); column.Bound(e => e.GROUP_ID).Title("Group Id").Hidden(true); column.Bound(e => e.GROUP_NAME).Title("Group Name"); column.Bound(e => e.ITEM_ID).Title("Item Id").Hidden(true); column.Bound(e => e.ITEM_NAME).Title("Item Name"); column.Bound(e => e.ITEM_VALUE).Title("Item Value"); // column

How to pass data from Razor View Kendo UI DropDownList to Controller Variable?

♀尐吖头ヾ 提交于 2020-02-04 10:43:05
问题 vs'12 , KendoUI, asp.net C# MVC4 Internet Application EF Code First Would like to see how one would pass values form a KendoUI DropDownList to a MVC Controller from a Razor View Controller [HttpPost] //[AcceptVerbs(HttpVerbs.Post)] public ActionResult Index(ViewModelCCTRST model) //, FormCollection values) { if (ModelState.IsValid) { string clt = model.Clients; string cnt = model.Countys; string twn = model.TownShips; ... ... //string xx = values["Clients"]; // xx = values["Countys"]; // xx =

ng-template Error: The template context does not define a member called … (Kendo Grid)

跟風遠走 提交于 2020-02-04 00:46:54
问题 I have an issue when trying to use ng-template with Kendo Grid in Angular. The html I have is valid and compiles and functions properly when launched, but then Visual Studio Code shows this error: The template context does not define a member called column Here is my code: <kendo-grid-column field="countryID" title="{{ 'location.country' | translate }}" width="10"> <ng-template kendoGridEditTemplate let-dataItem="dataItem" let-column="column" let-formGroup="formGroup"> <app-dropdown-single

ng-template Error: The template context does not define a member called … (Kendo Grid)

て烟熏妆下的殇ゞ 提交于 2020-02-04 00:46:08
问题 I have an issue when trying to use ng-template with Kendo Grid in Angular. The html I have is valid and compiles and functions properly when launched, but then Visual Studio Code shows this error: The template context does not define a member called column Here is my code: <kendo-grid-column field="countryID" title="{{ 'location.country' | translate }}" width="10"> <ng-template kendoGridEditTemplate let-dataItem="dataItem" let-column="column" let-formGroup="formGroup"> <app-dropdown-single

Kendo Grid Custom Toolbar button Enable/Disable

跟風遠走 提交于 2020-02-02 16:25:21
问题 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