kendo-grid

Get column index from column name in Kendo grid in Javascript

流过昼夜 提交于 2021-02-08 12:39:12
问题 Is there a way we can find out the index of column in grid, if we know the column name in Kendo grid? e.g. EmployeeID| Name 123 | John I want to know the index of 'Name' field i.e. 1 in the grid. Any suggestions. Thanks. Sanjeev 回答1: Please try with the below code snippet. <!DOCTYPE html> <html> <head> <title>Jayesh Goyani</title> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2015.2.902/styles/kendo.common-bootstrap.min.css" /> <link rel="stylesheet" href="https://kendo.cdn

How to access the kendo grid footer template value

时间秒杀一切 提交于 2021-02-08 06:17:19
问题 i have developed a web application using kendo tools and asp.net mvc4.. below is a screenshot of the grid i'm using and i need to get the value of footer under the "Total Stock" column.. according to this, the total value is $74,050.85.. i need to assign this value to a text box or a variable and use it in some where else but there no positive feedback from the online resources.. can somebody please tell me that how to get a value from footer template .. 回答1: You can get the footer aggregate

How to access the kendo grid footer template value

大城市里の小女人 提交于 2021-02-08 06:17:15
问题 i have developed a web application using kendo tools and asp.net mvc4.. below is a screenshot of the grid i'm using and i need to get the value of footer under the "Total Stock" column.. according to this, the total value is $74,050.85.. i need to assign this value to a text box or a variable and use it in some where else but there no positive feedback from the online resources.. can somebody please tell me that how to get a value from footer template .. 回答1: You can get the footer aggregate

Binding array of object to Kendo grid popup multiselect

☆樱花仙子☆ 提交于 2021-01-29 07:30:25
问题 I'm trying to bind an array of id-value pairs to a kendo grid popup editor. Got everything to work for creating a new record. Popup editor loads the custom editor and successfully submits the data to the controller. The problem is when I try to edit records. The records displays properly in the row, but when I try to edit it, the multiselect does not hold the values. Grid Markup $("#ProjectSites-SubContract-grid").kendoGrid({ dataSource: { type: "json", schema: { data: "Data", total: "Total",

Kendo Grid - Make a cell editable/uneditable for each row dynamically

痞子三分冷 提交于 2021-01-28 18:50:23
问题 I have a Kendo Grid where the COR ABA No. may or may not be editable, depending on a value in the first column. So, if NOC Code=='C01', then COR ABA No. is editable, otherwise it is not. I have achieved this by adding the Edit event on the columns and in that edit handler disabling the HTML input Kendo creates, when no editing is allowed. (In the grid definition, I have Editable(true) to start). I want instead to do this by doing the logic check in the DataBound event for the grid. That is,

Initiates the Excel export (Large number of rows) using kendoGrid

假装没事ソ 提交于 2021-01-28 09:41:17
问题 After the data get loaded in the Grid , I have a requirement to ' Export to Excel ' This works perfectly when i have lesser number of rows around 100s but now I am getting data which is exactly 12250 rows. This is getting loaded to the Grid but when I try to ' Export to Excel ' its not working. This load's my grid ` .Columns(column => { column.Bound(p => p.CBCustomerName).Title("CB Customers"); column.Bound(p => p.CBReceiveDateTimeUTC).Title("CB Date").Format("{0:MM/dd/yyyy}"); column.Bound(p

Kendo UI Grid - Where to look for fonts and icons

亡梦爱人 提交于 2020-12-12 11:32:25
问题 I'm in the early stages of learning Kendo UI. I've got the grid work and loading data but none of the images/icons that should appear in the grid are appearing. When I load the page containing the grid, I get the following 404 errors. The error message doesn't tell me where it's expecting to find these files. Where is Kendo UI looking for these files? Or, can I tell Kendo where to look for them? I currently have the files located here in my MVC folder structure, but it's not finding them: 回答1

How to perform server side filtering on Kendo UI Grid

社会主义新天地 提交于 2020-08-05 05:57:50
问题 I am trying to implement server side filtering for a Kendo UI grid (client only). I am not sure how to pass the filter operator and value entered on the filter box. I was able to implement server paging and want the filtering to work alongside the server paging, i.e. show page 2 of 5 items of filtered rows. I saw some example of binding the request to "DataSourceRequest" object but we do not have licence for the server side Kendo UI and have to achieve it using the client side changes only.