kendo-asp.net-mvc

Partial View in kendo grid column

断了今生、忘了曾经 提交于 2019-12-23 10:53:22
问题 I have an ajax enabled kendo grid with a client template that displays data from the model to which the row is bound. (because of ajax, using columns.Template seems not possible.) @(Html.Kendo().Grid<Model>() .Columns(columns => { columns.Bound(x => x.SubModel).ClientTemplate("bla #= SomePropertyOfSubModel # bla") }) .DataSource(dataSource => dataSource.Ajax()) This works basically, but I am not satisfied with the result. For ex., I have problems to make kendo controls in the template work. I

Kendo Grid Automatically changing Timezone

≡放荡痞女 提交于 2019-12-23 09:26:12
问题 On my Kendo Grid I recieve date time from server. On the client end, this time is changed to client's timezone and that is displayed. How can I show the same time from the server to the client. the following is my kendo code for binding the datetime. columns.Bound(p => p.CreateDate).Format("{0:dd/MM/yyyy hh:mm:ss}").Sortable(true).Width(180); 回答1: Since the dates are created on the client when the response from the server is returned - the dates are always created with an offset according to

How do I change the Kendo alert title?

◇◆丶佛笑我妖孽 提交于 2019-12-22 22:19:03
问题 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"); 回答1: 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

How do I change the Kendo alert title?

女生的网名这么多〃 提交于 2019-12-22 22:18:12
问题 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"); 回答1: 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

How to refresh the KendoUi grid after a ajax post callback

落花浮王杯 提交于 2019-12-22 17:51:36
问题 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

Kendo UI Calendar Multiselection

主宰稳场 提交于 2019-12-22 10:57:10
问题 Hi is there a way to make the kendodatepicker allow multiselect? so select more than one date and have them all stay highlighted? 回答1: Update 08.2016 You can use my plugin to select multiple dates. Demo Old answer Still there is no official way to select multiple dates in DatePicker. However, with some help of jQuery you can achieve this functionality. HTML: <table> <tr> <td style="vertical-align: initial; padding-right: 100px;"> <input id="picker" /> </td> <td> <div id="calendar"></div> </td

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

荒凉一梦 提交于 2019-12-22 10:35:47
问题 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

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

时光毁灭记忆、已成空白 提交于 2019-12-22 10:05:21
问题 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

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

◇◆丶佛笑我妖孽 提交于 2019-12-22 09:43:13
问题 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? 回答1: Changed the calculation

Handling events from a Kendo MVC Grid's PopUp editor window

大城市里の小女人 提交于 2019-12-20 05:35:36
问题 I have a Kendo MVC grid that I am creating with the Html.Kendo().Grid helper. When the PopUp editor window opens, I want to catch the event and run a bit of javascript. When I configure a normal kendo window with .Events, the events fire properly and my function runs. However, when I code the .Events property on the .Editable.Window of the grid, the events do not fire. @(Html.Kendo().Grid<FooRecord>() .Name("cFooGrid") .Columns(c => { c.Bound(f => f.Foo); c.Bound(f => f.Bar); c.Bound(f => f