kendo-grid

How to set multiline column in kendo ui grid

一曲冷凌霜 提交于 2019-12-10 17:54:53
问题 I need to set a column of a kendo ui grid to multiline. Right now the specific column has to much data in it, so its shortened by ... Is there a possibility to make that column multiline? 回答1: You can set multi-line column in kendo ui grid by using following code snippet. <style> .breakWord20 { word-break: break-all !important; word-wrap: break-word !important; vertical-align: top; } .k-grid-header .k-header { overflow: visible !important; white-space: normal !important; } </style> ...... ...

Kendo Grid: How display List<string> in one cell?

荒凉一梦 提交于 2019-12-10 17:42:51
问题 I tried to iterate through the list and display all elements into a cell in a column but I've having trouble getting it to work. Here is what I have so far. In Grid definition: columns.Bound(x => x.locationList).Title("Locations Included").ClientTemplate("#= iterate(x.locationList) #"); where x.locationList is a List<string> in the object passed in. In <script> : function iterate(object) { var html = "<ul>"; for (var x = 0; x < object.length; x++) { html += "<li>"; html += object[x]; html +=

ASP.NET MVC: Redirecting from one view to another

时光怂恿深爱的人放手 提交于 2019-12-10 17:19:29
问题 Hi I am using the following code to redirect from a kendo grid to another page (View): @(Html.Kendo().Grid<WM.ViewModels.StockReceiptsGridViewModel>() .Name("Grid") .ToolBar(toolbar => toolbar.Template("<a class='k-button k-button-icontext' onclick='addMaterialPopup()' href='#'></span>Create Stock Receipt</a>")) .Columns(columns => { columns.Bound(p => p.StockReceiptID); columns.Bound(p => p.SupplierName); columns.Bound(p => p.Product); columns.Bound(p => p.Dimensions); columns.Bound(p => p

Kendo Grid using inline editing and custom editor dropdown control

被刻印的时光 ゝ 提交于 2019-12-10 15:24:01
问题 I am trying to implement a custom editor for a column on a grid. The editor uses a DropdownList control. I am able to get the Dropdown to show upon add/edit, however after making a selection and posting the json that is sent contains the default value, not the value that was selected. My implementation is below it is an excerpt from a Razor page. Can you help me figure out what I've done wrong here? <div id="divGrid"></div> <script> $(document).ready(function () { var dsGroupForm = new kendo

How do I refresh a Kendo UI combo box?

此生再无相见时 提交于 2019-12-10 13:44:23
问题 I have an ASP.Net MVC Kendo UI combobox that is databound to a table with 1000's of records. I've set the MinLength property to 5 so I only return relevant results. The problem is, the user might need to change the text value all together. Is there a way to tell the control to refresh? Here's the code for the control... @(Html.Kendo().ComboBoxFor(x => x.Product) .Name("Product") .DataTextField("Name") // Display value .DataValueField("Id") //Return value .MinLength(5) .AutoBind(false)

Using templates&editors in grid column with Angular Kendo UI

霸气de小男生 提交于 2019-12-10 11:45:44
问题 I'm trying to use Angular Kendo UI in my app. Some views include grid. <div kendo-grid k-sortable ="true" k-pageable ="true" k-filterable ="true" k-resizable ="true" k-editable = "'incell'" k-selectable = "true" k-options = "accountSettingsDS" k-columns = '[ { field: "Companies", title: "Companies", editor : "<input kendo-drop-down-list k-data-text-field=\"'name'\" k-data-value-field=\"'name'\" k-data-source=\"CompaniesList\" ng-model=\"dataItem.Companies\"/>"}, { field: "Currency", title:

how to prevent opening of kendo grid editor pop up in javascript

不羁岁月 提交于 2019-12-10 11:42:03
问题 I have two grid. When first has selected row, from other grid,user can create new row correctly. If first has not selected row, a function in javascript alert but can not prevent to opening of pop-up. I need how can i prevent or how to close grid pop-up Two Grid //grid code in view @(Html.Kendo().Grid<Kurslar.Models.DonemKursu>() .Name("donemGrid") .Columns(columns => { columns.Bound(p => p.DersAdi).Title("Ders").Width(85); columns.Bound(p => p.EgitmenAdiSoyadi).Title("Eğitmen").Width(200);

Kendo Angular 2 Grid Filter similar to Excel

随声附和 提交于 2019-12-10 11:23:13
问题 How can We implement an excel-like filtering on a grid using kendo-angular. I can't find a solution in the documentation. This is the feature in JQuery version: http://demos.telerik.com/kendo-ui/spreadsheet/sorting-filtering edit 1: a filter similar to this one 回答1: Here is an example: <kendo-grid-column field="ProductName" title="Product Name"> <ng-template kendoGridFilterCellTemplate let-filter let-column="column"> <kendo-grid-string-filter-cell [showOperators]="false" [column]="column"

Query option 'Format' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings

为君一笑 提交于 2019-12-10 11:04:02
问题 I'm getting an exception on my Web API controller end-point and I would really apricaite some help in solving this: Here is the story: My Web API project a controller exposes the following End-Point: My Kendo UI Datagrid makes the following request: http://localhost:63865/api/employees/GetAll?$callback=jQuery21109420544053427875_1410883352953&%24inlinecount=allpages&%24format=json&%24top=5 When validating the ODataQueryOptions sent in the request, I'm getting this exception: Query option

Kendo Grid - Customize Filter Row

穿精又带淫゛_ 提交于 2019-12-10 10:34:53
问题 there is a feature called "Filter Row" in Kendo Grid http://demos.telerik.com/kendo-ui/grid/filter-row I want to add a drop-down list instead of a text box or a number box, to the filter box. It's for filtering a column that has countries. So I want list of countries in a drop-down list. How can I do this? 回答1: It's very similar to the custom Filter Menu (http://demos.telerik.com/kendo-ui/grid/filter-menu-customization). I made the mistake of no using valuePrimitive: true . You might not want