kendo-ui

Inject kendo ui with requirejs

☆樱花仙子☆ 提交于 2019-11-30 19:10:22
问题 The documentation on kendo ui and requirejs seems to miss some stuff. They tell me how to use kendo.web.min which have everything included: http://www.kendoui.com/blogs/teamblog/posts/13-05-08/requirejs-fundamentals.aspx (search for keyword 'shim') but I am not interested in adding the big 2MB kendo.web.min script, I just want to shim the kendo.grid.min but this file has a dependency to kendo.data.min which again has a dependency to kendo.core.min. How can I tell requirejs to load also kendo

How to modify KendoUI DropDownList items

徘徊边缘 提交于 2019-11-30 19:08:47
We used the Kendo UI DropDownList the first time without binding with knockout. Via jquery a usual html input is transformed into a KendoUI DropDownList. But how can i remove/edit/add items to the options? If i modify the html inputs options via jquery it has no influence on the kendoui dropdown - even with a refresh call afterwards. Any ideas how to do this? Thanks Yo mate You should use the dataSource of the combobox. e.g. var ds = $('#YourCombo').data().kendoComboBox.dataSource; then you can modify the items like this //someIndex is the index of the item in the dataSource ds.data()

Kendo MVC Grid: Creating a Custom command button and passing parameters

半城伤御伤魂 提交于 2019-11-30 19:07:27
I'm trying to create a custom command button to fire a custom delete function. I need to pass the ID of my model to my custom delete function. You'll notice that I'm trying to pass in a static '5' as a test but I would like to pass in the ID of the row. Any help would be greatly appreciated. @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.Name).Width(240); columns.Bound(p => p.City).Width(170); columns.Bound(p => p.State).Width(170); columns.Command(command => { command.Edit(); command.Custom("Delete").Click("PropertyPage.DeleteProperty").HtmlAttributes(new

Kendo UI Grid Always Starts at Page 0

随声附和 提交于 2019-11-30 18:36:39
问题 I have a Kendo UI Grid and it's always starting at 0. If I change the sort on a column then it goes to 1 and shows the other page numbers. What am I doing wrong? Here is my code: $('#userGrid').kendoGrid({ dataSource: { pageSize: 5, transport: { read: { url: ROOT+"user/user-list", }, update: { url: ROOT+"user/update-user", dataType: "POST" } }, error: function(e) { alert(e.responseText); }, schema: { data: "data", model: { id: 'id', fields: { username: {type: "string", editable: false}, type:

Bundle of Kendo UI is not working in IIS

我与影子孤独终老i 提交于 2019-11-30 18:33:38
问题 I am developing an application in ASP.NET MVC 4 using Kendo UI, and the entire application works perfectly by running Visual Studio 2012, but when publishing to the IIS bundle of Kendo is not working, leaving the entire interface unconfigured. Below is the class code BundleConfig and Layout with the call: BundleConfig.cs public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery

kendoui validation tooltip in custom popup editor not positioning correctly

落花浮王杯 提交于 2019-11-30 18:22:56
Please see jsfiddle for example, blank out First Name field to have validation tooltip show. In a normal form the validation tooltip positions correctly to the right of each element. But in the popup editor for the grid it still trying to position the tooltip below the element as if it where editing inline. I have tried <span class="k-invalid-msg" data-for="FirstName"></span> but it doesn't change anything. Is there a setting I am missing to get this working in popupeditor? I guess I could manually modify the .k-tooltip but I am hoping for something more built in that handles the positioning

Line break in category label of kendo-ui chart

一曲冷凌霜 提交于 2019-11-30 18:11:20
I have a chart where the labels contain two parts, a name an a number. I want the number to appear below the name, illustrated by the <br/> tag: I load the contents of the chart, and set the label in my controller: When i try to use a template on the label, the text after the line break appears at the bottom of the chart along with the rest of the text of the chart: javascript code: $("#chart1").kendoChart({ theme: "BlueOpal", title: { text: "My reported hours" }, legend: { position: "bottom" }, seriesDefaults: { type: "column" }, dataSource: { transport: { read: { url: dataUrl, dataType:

How can I refresh value kendo numerictextbox?

假装没事ソ 提交于 2019-11-30 17:37:51
I have a kendoNumericTextBox. I have code that sets the value of the input element associated with the kendoNumericTextBox. For example, the code calls: $('#myId').val('test'); Unfortunately, the kendo numeric text box doesn't automatically reflect the value. How can I tell the kendoNumericTextBox to update its value? I know there's a method on kendoNumericTextBox as follows: $('#myId').data('kendoNumericTextBox').value('test'); However, I'm populating many fields and not exactly sure which ones will be kendoNumericTextBox fields. So, I prefer to call something like I do with the chosen plugin

How to use SetDataSource Method of the Kendo UI Grid

血红的双手。 提交于 2019-11-30 15:08:48
问题 Has anyone been able to use setdatasource method of the kendo UI grid? I believe this is used to assign datasource that can be assigned to the grid at the later stage and also for grid refresh purposes. However i couldn't find any proper documentation that explains how to use this method and make refreshable grid. I am trying to update my datasource via remote ajax call. I also assumed that it should autorefresh when the source is updated by setting the autosync property to true. Everytime i

kendo grid delete command not working

ぐ巨炮叔叔 提交于 2019-11-30 14:42:17
问题 i have developed a web application using kendo ui tools and theres a kendo grid with batch edit mode .. but when i press the delete button for any record in kendo grid it will erase from the list in grid but actually not in the data source.when i reload the page or grid the deleted item will still exist.. here is the code of my grid <div id="grid"> </div> <script type="text/javascript"> $("#submitMarketUser").click(function () { var grid = $("#grid").data("kendoGrid"); var dataSource = new