kendo-ui

Remove HTML from Excel generated from Kendo Grid

旧巷老猫 提交于 2019-12-04 06:41:37
问题 I'm using the following code to load grid data and for removing the HTML from the footer and group footer in Excel. I'm using the recommended code only but somehow it's not working and there is no change in result as well. var GridParams = function(fromDate, toDate) { var groupSortDirection = groupByPaymentDate.value(); return { id: divReportGrid, showGroup: true, serverSorting: false, url: formUrls.gridUrl, columns: columns(), pageSize: 50, showReport: true, fileName: "Report.xlsx", toolbar:

Custom Delete Confirmation popup on Kendo Grid

牧云@^-^@ 提交于 2019-12-04 06:22:34
I have a Kendo grid where I need to customize the delete confirmation message box based on data in row being deleted. I have a customized general message as part of Grid configuration as below. editable: { confirmation: "Are you sure that you want to delete this record?", mode: "popup", template: kendo.template($("#popup-editor").html()) } I was looked at using the remove event handler, but that fires after the row has been deleted. I am guessing you will need to do this manually. Simply add a custom button to the grid, that calls your code to delete the item. Kendo Grid Custom command http:/

Convert lambda expression to Json

我只是一个虾纸丫 提交于 2019-12-04 06:12:36
问题 First of all please be sure that none of the solution on stackoverflow has not solved my problem (maybe it is caused from Entity Framework 6). I have 3 entities: Student, City and Region as below: Entities: public class Student { public int ID { get; set; } public string Course { get; set; } public int CityID { get; set; } public virtual City City { get; set; } } public class City { public int ID { get; set; } public string Name { get; set; } public int RegionID { get; set; } public virtual

Combining Knockout.js + KendoUI - What has been your experience?

蓝咒 提交于 2019-12-04 06:01:49
So I see that KendoUI has included an example of integration with Knockout.js: http://demos.kendoui.com/web/integration/index.html However, this looks like a pretty trivial example. According to this post, it looks like binding to something like Kendo's grid would be much more involved: http://www.kendoui.com/forums/ui/grid/knockoutjs-example-for-grid.aspx It also looks as if they are creating their own MVVM implementation to try and solve the issues. Has anyone here used KendoUI and Knockout.js for non-trivial apps using some of the more complex components? I've been doing a lot of research

how to get selected value for Kendo DropDownList

若如初见. 提交于 2019-12-04 05:14:31
I can't figure out how to determine which item is selected in the my kendo dropdownlist. My view defines it's model as: @model KendoApp.Models.SelectorViewModel The ViewModel is defined as: public class SelectorViewModel { //I want to set this to the selected item in the view //And use it to set the initial item in the DropDownList public int EncSelected { get; set; } //contains the list if items for the DropDownList //SelectionTypes contains an ID and Description public IEnumerable<SelectionTypes> ENCTypes } and in My view I have: @(Html.Kendo().DropDownList() .Name("EncounterTypes")

Kendo Grid: how to get the selected item from a Combobox cell template when using with Angular

大城市里の小女人 提交于 2019-12-04 05:09:26
问题 I have a Kendo grid which I am using within Angular, and have a field with a combo box, that has the editor set to the following function... function comboCellTemplate(container, options) { var input = $('<input name="' + options.field + '" />') input.appendTo(container) var combobox = input.kendoComboBox({ autoBind: true, filter: "contains", placeholder: "select...", suggest: true, dataTextField: "description", dataValueField: "code", dataSource: data, }); And data is a list of simple json

Kendo Grid with custom popup editor using MultiSelect - can't get selected items in model

久未见 提交于 2019-12-04 05:04:02
So the title pretty much says it all. I'm trying to incorporate the new MultiSelect widget into a Grid's custom popup editor template. I'm using the Data Attribute Initialization method and reading the dropdown options from a remote dataSource. This is all working okay, but I can't get the values of the selected items into the model. When I save the row, an array of data is sent to the server representing the first data item selected in the MultiSelect, rather than a comma-separated list of selected values. Any ideas how I can get the MultiSelect value (list/array of selected values) into the

Kendo Grid hierarchy passing ID from master grid

拟墨画扇 提交于 2019-12-04 05:01:44
问题 I have a Kendo Hierarchial Grid where the master grid contains the Client details and the sub grid contains the Point of Contacts . I am able to pass the Client ID from the master grid into the sub grid Read action and the data is loading fine. However, the issue comes while passing the Client ID into a Add New Point of Contact button in the sub grid. If I hard-code the value the Controller method runs fine. However, it is unable to pick the reference Client ID . The sub grid is as follows:

Radio Button doesn't reflect Model's value

…衆ロ難τιáo~ 提交于 2019-12-04 04:31:46
问题 I have a kendo Grid for a class, and for that class I've built an editor template to produce a radio button for one of the fields. This radio button doesn't reflect propertie's value and is always false , although I've checked the value, by printing it on the form, and I'm sure it's true . If I set a default value for that field, the radio button will reflect that value, regardless of the real value of the field. I should note that I'm using a client template to display a text for that field,

Why Is `data(“kendogrid”)` Undefined?

六月ゝ 毕业季﹏ 提交于 2019-12-04 04:05:42
I'm a starter in kendo.ui, I've written this code to create kendo.ui.grid @(Html.Kendo().Grid<BrandViewModel>(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.BrandName); columns.Bound(p => p.BrandAbbr); columns.Bound(p => p.SrcImage); columns.Command(command => command.Custom("Edit").Click("editItem")); }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("CustomCommand_Read", "Brand")) .Model(model => model.Id(p => p.Id)) ) ) When the user clicks the edit button in grid it will show Edit view in kendo.ui.window and the user can edit data. @(Html.Kendo()