kendo-asp.net-mvc

Kendo grid column with image from a server

白昼怎懂夜的黑 提交于 2019-12-06 15:35:37
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 server instead of the c:/pics folder in my machine. I have tried replacing this bit here: src='c:/pics/"

How to refresh the KendoUi grid after a ajax post callback

空扰寡人 提交于 2019-12-06 13:34:26
How to refresh the kendo ui grid after a ajax post is successful? Here is my grid ajax post: var newUser = { UserId: 0, UserLoginName: currentRecord.UserLoginName, UserDisplayName: currentRecord.UserDisplayName }; //insert selected rows using DataSource insert method destinationGrid.dataSource.insert(newRecord); //ajax post to server var url = '@Url.Action("CreateUser", "ManageUsers")'; $.post(url, { loginid: currentRecord.UserLoginName, name: currentRecord.UserDisplayName, role: roleSelected }, function (result) { if (result.Success) { **////grid is not refreshing as I want to refersh the

AngularJS Kendo Grid Paging is always Zero

懵懂的女人 提交于 2019-12-06 12:28:35
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: "Lahore",…} 1: {DeptId: 2, DepartmentName: "Mechnical Engineering", Country: "India", City: "Dehli",…}

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",

Asp.Net CPU issue working with Kendo UI treeview after Visual Studio 2013 Update 2

拟墨画扇 提交于 2019-12-06 04:09:27
I'm developing Asp.Net MVC website using Kendo UI. Installed Visual Studio 2013 Update 2 RTM and got CPU issue on IIS (CPU >= 30%). http://c2n.me/i7juKB.png After an hour of searching issue, found that the problem is in Kendo UI Treeview with hierarchical data. Kendo Treeview Asp.Net MVC wrapper code: @(Html.Kendo().TreeView().HtmlAttributes(new { style = "height:150px;" }) .Name("treeview-library-country") .Events(events => events.Select("common.onTreeViewSelect").Collapse("common.onTreeViewCollapse").Expand("common.onTreeViewExpand")) .Checkboxes(checkboxes => checkboxes.Name(

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

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

How to make ASP.NET Core RC2 app build on net46 framework with older third party dependencies

…衆ロ難τιáo~ 提交于 2019-12-06 00:46:09
I have a shiny new Asp.Net Core MVC App that references some older net45 libraries. Works fine with Asp.Net Core RC1 on full net45 framework. Migrating from Asp.NET Core rc1 to rc2 I have hit an obstacle that I don't know how to fix. The App is a ASP.NET Core App that using EF6, Autofac, Kendo.MVC and it needs to run on the full .Net 4.6 framework as there are references libraries that use WCF. In migrating from rc1 to rc2 I first update the NuGet.config feed to point to https://www.myget.org/F/aspnetcirelease/api/v3/index.json then I make the following changes to the project.json Remove

Why isn't my code creating a Kendo widget?

无人久伴 提交于 2019-12-05 22:02:54
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="~/Scripts/angular/underscore.js"></script> <script src="~/Scripts/Kendo/kendo.all.min.js"></script>

How to transpose rows and columns in a Kendo UI grid in MVC application?

ぃ、小莉子 提交于 2019-12-05 20:23:59
I am using Kendo Ui Grid in my MVC application. I wish to display statistical data for multiple countries in my grid. The way I retrieve data from the database, my grid would show data a bit like the following: Country Area Population GDP GDP Growth India 3288000 1220200000 1.848 6.8 USA 9827000 314686189 15.09 1.7 But instead of the format above, I wish it show like the following: Country India USA Area 3288000 9827000 Population 1220200000 314686189 GDP 1.848 15.09 GDP Growth 6.8 1.7 How could I achieve this transposition? If any one will stumble upon this issues, most important you need to