kendo-ui

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

Model binding to action is always null if the parameter is named “model” for kendo ui grid create actions

折月煮酒 提交于 2019-12-22 18:13:40
问题 I have an action where the request is being generated from a kendo ui grid's Create event. The information is all being posted correctly, and the model binder works properly expect in any case where the action parameter name is 'model' If the action is defined like this: [HttpPost] public ActionResult Create(ModelType post) { } Everything works properly. If instead though, the action looks like this: [HttpPost] public ActionResult Create(ModelType model) //changed parameter Name to model { }

Remove IE 10 Clear Button From Input Field

谁都会走 提交于 2019-12-22 17:59:26
问题 On all my inputs on my site, the IE 10 Clear button is getting in the way when I try to have a Kendo Numeric Textbox in the input. I have looked it up here, and every single question says this is what I should do in my CSS: ::-ms-clear { display: none; } However, the Clear button is still there in IE 10 after I do this. I have tried adding !important to the display: none; , and it still shows up. I noticed in my CSS that is being uploaded to the site that the ::-ms-clear that I am putting

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

Is it possible to have full CRUD functions in kendo grid with local data

心已入冬 提交于 2019-12-22 17:38:07
问题 I'm currently implementing a kendo grid and i'm populating it with local data. That is; I have generated a JSON string from my action and supplying that string on the view page. In the end i would like to know if it is possible to implement full CRUD functions with local data? here's a sample of the code written so far; <div id="example" class="k-content"> <div id="grid"></div> <script> $(document).ready(function() { var myData = ${coursemodules}, dataSource = new kendo.data.DataSource({ data

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

kendo bind HTML elements to grid selected row/dataItem

你说的曾经没有我的故事 提交于 2019-12-22 10:43:52
问题 I have the following situation (using KendoUI): I have a grid binded to a datasource. When I select a row in the grid I invoke its "change" event to get the selected dataItem e show its values through other HTML elements. Something like the following: $("grid-element").kendoGrid({ change: setElements }); function setElements() { var grid = $("#grid-element").data("kendoGrid"); var selectedItem = grid.dataItem(grid.select()); $("#span-field1").text(selectedItem.field1); $("#span-field2").text

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

Model binding the sort field from KendoUI Grid

*爱你&永不变心* 提交于 2019-12-22 08:08:06
问题 I'm using KendoUI Grid to show data. I have server paging working like a charm. The each page change in the kendo grid is a new ajax request to the server and the server returns the correct page of data. I am now trying to do server-side sorting, but I'm having trouble getting model binding to bind to the sort values. This is what the request from the Kendo Grid looks like: My action method looks like this: public JsonResult GetReports(int pageSize, int skip, List<KendoSort> sort) { // sort

Kendo Grid - Bind Data After Search

纵饮孤独 提交于 2019-12-22 07:06:20
问题 ASP.NET MVC 4 | .NET 4.5 | Razor| C# I have a textbox and a button at the top of the page. Below that is a Kendo Grid which is bound to a List in my view model. When the user clicks the search button a jQuery ajax request is made and the data is returned as JSON. The only question I have is how do I bind that data to my Kendo Grid? Any help is appreciated. @(Html.Kendo().Grid(Model.PurchaseOrder.LineItems) .Name("poSearchGrid") .Columns(c => { c.Bound(x => x.LineNumber).Title("Line Number");