kendo-grid

Kendo Grid Export To Excel Currency formatting

邮差的信 提交于 2019-12-06 07:01:28
问题 I am trying to export my Kendo grid to excel. It works fine except the formatting is missing. I think it is because I am using a template. The Telerik documentation explicitly states: To format the cell values during the export of the Grid to Excel, set the format option of the cells. I have tried this and it is not working: columns: [ { field: "EntryWage", headerTemplate: entryLevelWageColumnHeading + "<span name='EntryWage' class='k-icon k-i-close remove' style='float: right;'></span>",

Kendo Grid inline edit with Datetime DatePickerFor

ぐ巨炮叔叔 提交于 2019-12-06 06:24:24
kendo inline cell edit not support for datetime format. I need "dd/MMM/yyyy" data format but kendo grid shows "the filed date must be a date" error. can you please advice me to what to do You can use a custom editor to do this. References: Grid Custom Editing DatePicker.format Date Formatting The code would look something like this (not tested, but it should be close enough to give you the right idea): var customDateEditor = function (container, options) { $('<input />') .appendTo(container) .kendoDatePicker({ format: "dd/MMM/yyyy" }); }; $("#grid").kendoGrid({ ... columns:[ { field: "myDate",

My kendo grid column filter icon popup is not displaying properly

寵の児 提交于 2019-12-06 05:11:52
I have kendo grid and its have filterable "true", when click on filter icon,it displays like below.When we enter the text in filter box,half of the letters are displayed only.Is it possible to increment the size of text-boxes in filter? What is problem here?And how to resolve this problem? You just try to increase the text box height Once try this .k-numeric-wrap .k-input { height:23px } It seems like your css styling might be conflicting with kendo's css styling. If you are using chrome, right click on the textbox and click Inspect Element. (I am sure you can also inspect elements in other

ASPNet.Core 1.0 RTM Kendo Grid not displaying data

人走茶凉 提交于 2019-12-06 04:51:45
问题 It looks like the new internal build (2016.2.630) for ASPNet Kendo MVC does not work with the Kendo Grid. Or at least not with returning Json from a Read action in the grid. @(Html.Kendo().Grid<EmployeeModel>() .Name("grid") .Columns(columns => { columns.Bound(p => p.EmployeeID).Visible(false); columns.Bound(p => p.Name); columns.Bound(p => p.Salary); }) .Pageable() .HtmlAttributes(new { style = "height:550px;" }) .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .Read(read => read

Kendo Grid: Toolbar template issue

旧街凉风 提交于 2019-12-06 03:26:24
I have a grid that lists Road information and want a Toolbar Template that will allow me to filter the roads by choosing a Concession from a DropDownList. Something like this My code: CSHTML <div id="datagrid"> @(Html.Kendo().Grid<SustIMS.Models.RoadModel>() .Name("datagrid_Roads") .Columns(columns => { columns.Bound(r => r.RoadCode).Title(ViewBag.lblCode).Width(140); columns.Bound(r => r.RoadType).Title(ViewBag.RoadType).Width(140); columns.Bound(r => r.RoadMediumDescription).Title(ViewBag.lblDescription); columns.Bound(r => r.ConcessionCode).Title("CCode").Hidden(); columns.Bound(r => r

Preventing editing a row in kendo grid?

与世无争的帅哥 提交于 2019-12-06 02:32:08
I am using kendo grid and while editing a row i am checking whther that row is editable or not.So how to make the selected row non editable if its not editable.I am doing the checking in edit function of grid. Code $("#grid").kendoGrid({ dataSource : ds, selectable : "multiple", sortable : true, filterable : false, reorderable: true, scrollable : false, toolbar : ["create"], columns: [ { field: "event", width: "120px", title: "Event Type"}, { field: "event_id", width: "120px", title: "Event ID"}, { field: "addr_no_or_type", width: "120px", title:"Address"}, { field: "event_rate", width: "100px

Changing the kendo numeric filter format

纵饮孤独 提交于 2019-12-06 01:58:02
问题 I am applying custom paging and sorting in the kendo grid. For one of my column I am getting a numeric text box. When I insert the value in numeric text box it is integer, but as the focus is removed from the filter numeric text box it converts into decimal. For eg: if I entered 32, it remains 32,but as the focus is removed the value becomes 32.00. But I want that value to remains 32. So any one can please help me out with the solution. 回答1: You can set like below columns.Bound(x => x

Kendo Asp.net MVC Grid Batch Mode Calculated Column Display does not update

断了今生、忘了曾经 提交于 2019-12-06 01:09:21
Using Kendo Asp.net MVC Grid in Ajax Batch Mode. Having three columns - Qty, Rate, Total. Need to achieve real-time calculation on change. Written following function to update data. function grid_change(e) { if (e.action === "itemchange") { var item = e.items[0]; item.Total = item.Qty * item.Rate; } } But the column does not reflect the calculated value until focus is moved over it. How to update / refresh the cell display as soon as the change event is completed? Changed the calculation statement (see below) and all the related columns started reflecting changes immediately after the focus

Cancel the update in inline kendo grid delete the row

末鹿安然 提交于 2019-12-05 22:37:14
问题 I am using two kendo inline grid parent and child. child grid contains the list of products,when user select the products(multiple selection) from child grid and clicked to save button,it's inserted into an parent grid. Child grid: var selectedIds = {}; var ctlGrid = $("#KendoWebDataGrid3"); ctlGrid.kendoGrid({ dataSource: { data:data1, schema: { model: { id: 'id', fields: { select: { type: "string", editable: false }, Qty: { editable: true, type: "number", validation: { min: 1, required:

Kendo UI Grid Inserts/Updates create Duplicate Records (again)

痞子三分冷 提交于 2019-12-05 21:19:38
I have same problem as Daniel had in this topic, but his solution doesn't work for me: http://www.kendoui.com/forums/ui/grid/kendo-ui-grid-inserts-updates-create-duplicate-records.aspx#-jhxqRrNAUGsTFJaC-Ojwg So use-case. Users adds 2 new records one after another: Presses "Add new record" button of a grid Fills the fields (name="Alex", amount=10, comment="first"). Record one is ready. Press 'Save'. (data goes to controller and than to Database) User see one record in a grid Press "Add new record" button again Fills fields (name="Bob", amount=20, comment = "second"). Record one is ready. Press