kendo-grid

Kendo UI for Angular Grid Detail expand/collapse button to be moved to the right?

妖精的绣舞 提交于 2019-12-11 16:04:55
问题 Is it possible for the Kendo UI for Angular Grid Detail expand/collapse button to be moved to the right of the grid? It appears that kendo-ui defaults the expand/collapse to the left most column of the kendo grid. I need to see if it is possible to move it to the button to the right. 回答1: We can implement it by hiding the current +/- icons using some custom CSS and manually adding such icons to the last column. Then we would need to programmatically expand and collapse the detail template,

Kendo ui grid filed with editor, pop up won´t close

最后都变了- 提交于 2019-12-11 15:04:46
问题 I have a field on my kendo ui grid which uses an editor: columns:[{ field:"Nome", title: "Nome" },{ field: "idTipoQuarto", title:"Tipo de Quarto", editor: tipoQuartoEditor}, In my model i have: schema: { data: "data", total: function(response) { return $(response.data).length; }, model: { id: "idQuarto", fields: { idQuarto: { editable: false, nullable: true }, Nome: { validation: { required: true } }, idTipoQuarto: { validation: { required: true }} } } } And my editor function is: function

Kendo UI Grid - Excel Export with hidden columns and custom formatting

一笑奈何 提交于 2019-12-11 14:41:15
问题 I'm attempting to use the Grid component's built-in support for exporting to excel, applying custom cell formatting as shown in these Telerik docs: http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/cell-format The approach using hard-coded row / cell indexes in the export comes with a rather obvious issue when exporting a grid with a prior hidden column displayed - best way to reproduce is to refer to this jsfiddle: https://jsfiddle.net/3anqpnqt/1/ Run fiddle Click

group filed kendo grid with type object

。_饼干妹妹 提交于 2019-12-11 13:48:59
问题 I have similar example to this grid http://jsfiddle.net/Sbb5Z/478/ I want to apply grouping on category field. I got an error. because category filed type is object. How can I specify the grouping filter field. I tried this but it did not work groupable: { field:"Category.CategoryName", } Any ideas ?? 来源: https://stackoverflow.com/questions/17547302/group-filed-kendo-grid-with-type-object

Working on templates for columns in kendo grid

梦想的初衷 提交于 2019-12-11 13:30:06
问题 I have been trying to use if and else in a template of one of the field in kendoGrid.I have two fields "StatusDesc" and "newStatusDesc". I want show one of the value as an anchor tag. That is displaying fine but if you notice onclick defined for anchor tag,it has one of the field from the grid itself because it has to open a another page but when i click on the anchor tag, console of my browser shows: uncaught ReferenceError: WEW6101 is not defined Actually if I check firebug, it shows below

Why are my KendoGrid “update” parameters always null in the controller?

坚强是说给别人听的谎言 提交于 2019-12-11 13:01:50
问题 I have the following code in my Index.cshtml file: var dataSource = new kendo.data.DataSource({ type: "json", transport: { read: { url: '@Url.Action("ReadTeachers", "EducationPortal")', dataType: "json" }, update: { url: '@Url.Action("UpdateTeachers", "EducationPortal")', type: "POST" }, parameterMap: function (data, operation) { if (operation != "read"){ var result = {}; for (var i = 0; i < data.models.length; i++) { var teacher = data.models[i]; for (var member in teacher) { result["teacher

How do you set the data function for a Kendo DataSource using the Razor HTML Helpers?

北城以北 提交于 2019-12-11 12:41:21
问题 I'm trying to get the Kendo UI for ASP.NET MVC grid control working with a WebApi controller using OData queries. I would prefer to emit the relevant javascript using the Html helpers but I'm struggling to emit the equivalent of this: schema: { data: function (data) { return data; } } I've tried this: .Schema(schema => schema.Data((object data) => { return data; })) But I'm getting Error: 'Kendo' is undefined in IE and the actual JS emitted is: "schema":{"data":Kendo.Mvc

How can I access the model for the selected item in a Kendo UI Grid

旧巷老猫 提交于 2019-12-11 12:05:52
问题 I have a selectable kendoUI grid in my ASP.NET MVC app. How do I get the strongly typed model object for the selected item? I have tried the following code but it doesn't work. @(Html.Kendo().Grid<Backup>(Model.Backups) .Name("MatchingBackupsGrid") .Columns(col => { col.Bound(backup => backup.BackupUId).Title("UID"); col.Bound(backup => backup.BackupFirstName).Title("First Name"); col.Bound(backup => backup.BackupLastName).Title("Last Name"); }) .Scrollable() .Selectable(sel => { sel.Mode

Update rows from grid and database with Kendo UI and MVC

自闭症网瘾萝莉.ら 提交于 2019-12-11 11:38:03
问题 I'm using a MVC project with Visual Studio 2012 and Kendo UI 2014. I can update a row from the grid and it changes, but when I reload the page, the row appears with the original info. I would like to update it in the database too . This is my code: .cshtml (View): <div class="grid"> @(Html.Kendo().Grid<UsersModel>() .Name("grid") .Editable(editable => editable.Mode(GridEditMode.InCell)) .DataSource(dataSource => dataSource .Ajax() .Model(r => r.Id(p => p.Id)) .Read(r => r.Action("GetAccounts"

select and show in new window Kendoui grid row data?

一笑奈何 提交于 2019-12-11 11:28:40
问题 I tried to select a grid row and show their element in a new window. I use opensource Kendo ui grid. I can select. I want to show details in a kendo pop up window. but I can't get selected row data. How it can be? $(document).ready(function () { $("#grid").kendoGrid({ sortable: true, pageable: { refresh: true, pageSizes: [5, 10, 100] }, autoBind: true, height: 500, selectable: "row", dataSource: { transport: { read: "/Raporlama/Getdata", type: "json" }, }, change: function(e) { var username =