kendo-asp.net-mvc

Kendo grid column with image from a server

女生的网名这么多〃 提交于 2019-12-08 06:15:32
问题 I've got a Kendo grid that displays images correctly on a column if the images are stored in my machine. @(Html.Kendo().Grid<ProjectName.Models.SomeModel>() .Name("grid") .Columns(columns => { ... columns.Bound(c => c.Image).ClientTemplate("<img src='c:/pics/" + "#=Image#' alt='image' Title='image' height='24'/>").Title("Image"); }) So, this correctly displays images that are stored on my local hard drive, in the path c:/pics . But now I need to show images that are stored in a specific

Kendo saveasexcel dynamically header of excel sheet

梦想的初衷 提交于 2019-12-08 03:40:17
问题 I have a kendo grid, like this: @(Html.Kendo().Grid<SDB.Models.NettoVergelijking.Dienstverband>() .Name("overzicht-grid") .AutoBind(false) .Columns(columns => { columns.Bound(d => d.Naam).Title("Medewerker").ClientTemplate("<span title='${Naam}'>${Naam}</span>").Width(300) .Filterable(f => { f.Extra(false); f.Operators(op => { op.ForString(str => { str.Clear().Contains("Bevat"); }); }); }); columns.Bound(d => d.Contractvorm).Title("Contractvorm").ClientTemplate("<span title='${Contractvorm}'>

kendo grid server side filtering and not working

浪尽此生 提交于 2019-12-08 02:15:31
问题 I'm using a Kendo Grid, with Server Side Filtering, Sorting and Pagination. This my code for initializing the Grid: In this code Server side pagination and virtual scroll is working but filtering and shorting is not working. In any request, I am getting this type of request parameters. [HttpPost] public JsonResult getGridData([DataSourceRequest] DataSourceRequest request) { var userList = data; return Json(userList.ToDataSourceResult(request)); } $("#grid").kendoGrid({ dataSource: { type:

AngularJS Kendo Grid Paging is always Zero

≡放荡痞女 提交于 2019-12-07 18:43:49
问题 I am trying to manage server side paging but my paging for kendo grid is always 0. My Code is : Index.cshtml <div ng-controller="telerikGridController"> <div id="grid" kendo-grid k-options="mainGridOptions"></div> </div> ASP.NET MVC JsonResult: Data Returned by Above JsonResult is : AggregateResults: null Data: [{DeptId: 1, DepartmentName: "Information Technology", Country:"Pakistan", City: "Lahore",…},…] 0: {DeptId: 1, DepartmentName: "Information Technology", Country: "Pakistan", City:

Kendo Grid inline edit with Datetime DatePickerFor

久未见 提交于 2019-12-07 18:26:11
问题 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 回答1: 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

How do I change the Kendo alert title?

爱⌒轻易说出口 提交于 2019-12-07 17:49:27
I'm using a Kendo alert and want to change the title of it. The default title is the url name, see link(image) below. I want to use my own title, how do I change this? Image Kendo alert The kendo alert: kendo.alert("mytext"); I found a solution to change the title, I did the following: myalert("mytext"); function myalert(content) { $("<div></div>").kendoAlert({ title: "mytitle!", content: content }).data("kendoAlert").open(); } Result: Image Kendo alert custom title I hope this answer helps a lot of people with the same problem. you cannot change the Title it's possible to hide it using css:

Why isn't my code creating a Kendo widget?

你。 提交于 2019-12-07 16:16:46
问题 i am just copying the demo code which is available on kendo's site but still it is not giving any widget in output, and it is giving the following error - "TypeError: undefined is not a function" in angular JS. i have also created a new jsfiddle for it here is the link- http://jsfiddle.net/akki166786/MYe2T/ Do anybody has any idea what is wrong in here? here is my code <script src="~/Scripts/jquery-1.7.1.min.js"></script> <script src="~/Scripts/angular/angularjs.js"></script> <script src="~

Kendo grid Insert new record on the last page, last row position

戏子无情 提交于 2019-12-07 11:40:42
问题 I'm using kendo grid in inline GridEditMode and GridInsertRowPosition set to bottom. Ajax is used for the data binding. Sorting is enabled and sorted by DateTime field. Page size is set to 10. To problem occur when there are multiple pages (more that 10 records). I have a javascript function that jumps to the last page and show new row at the bottom. But on some point sort event is triggered, and grid moves to read only mode. Is there a possibility to prevent Grid sorting only for the case

Kendo UI grid filters not working inside a bootstrap Modal

醉酒当歌 提交于 2019-12-07 02:01:23
问题 I got this strange issue on Kendo UI grid. I have a grid which is filterable, but it is inside the modal. But the problem is when i Filter a column (Text column) i cannot type on the filter textbox. It is weird because in all browser it doesnt work. Here is my Example repro Jsfiddle Demo Here <div class="container"> <h3>Modal Example</h3> <div> <a href="#myModal1" role="button" class="btn" data-toggle="modal">Launch Modal</a> </div> <!-- Modal --> <div id="myModal1" class="modal hide"

Kendo ListView: cant refresh (reload) data

安稳与你 提交于 2019-12-07 01:32:46
问题 Here is my ListView: @(Html.Kendo().ListView<Entity>() .Name("listView") .TagName("div") .ClientTemplateId("template") .DataSource(dataSource => { dataSource.Read(read => read.Action("Products_Read", "Home").Data("additionalData")); dataSource.PageSize(4); }) .Pageable() ) Here are javascript function that must reload data: var someData = "-1"; function reload() { // insure that function exists // alert( $("#listView").data("kendoListView").refresh) $("#listView").data("kendoListView")