kendo-ui

Why does the KendoUI Grid Transport Create event gets raised multiple times, and even when the action is Update?

假如想象 提交于 2019-12-08 19:32:21
问题 I have put together a fiddle that demonstrates that in the KendoUI 2013.1.319, when editing a record in the grid and press the Update button on the edit dialogue, it actually raises the Transport Create event, instead of the Update event, and it raises it once for each record. Open the following fiddle and press the Edit button on the first record in the grid, and then press the Update button on the edit dialogue, and have a look in the console window and you will see I have logged the event

ERROR: Kendo“Something” is not a function

我与影子孤独终老i 提交于 2019-12-08 18:20:15
问题 So I am trying to convert my plain HTML/Javascript site (which works fine) into an ASP MVC4 project. What I do is get and XML and use and XSLT to transform. I litreally use the code from here to do that In my _Layout.cshtml I use razor to load the resource <!DOCTYPE html> <html> <head> <title>@ViewBag.Title</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> ... things... @Scripts.Render("~/bundles/kendoScripts") @Scripts.Render("~/bundles/customScript") @Styles

Switch Statement in Kendo Template

荒凉一梦 提交于 2019-12-08 18:05:03
问题 Im using Kendo Template and I was able to create a conditional statement (IF statement) as stated on the documentaion. Here's my code. #if ((item.ControlType) == "tbx"){# @(Html.Kendo().AutoComplete() .Name("#=ctrlid#") .ToClientTemplate()) #}# This works fine. But what I'd like to have is a Switch Case Statement. I've tried this but it doesn't work. It says "Invalid Template". # switch (item.ControlType) {# # case "tbx": # @(Html.Kendo().AutoComplete() .Name("#=ctrlid#") .ToClientTemplate())

Cannot export hidden columns in Kendo Grid

僤鯓⒐⒋嵵緔 提交于 2019-12-08 17:32:07
问题 I want to hide some columns on Kendo Grid and export them to the excel as the visible columns. However, using Hidden(true) or Visible(false) does not make any sense and these fields are not exported. The workarounds on this page is not working. Any idea? View: @(Html.Kendo().Grid<ContactViewModel>() .Name("Grid") .Columns(columns => { columns.Bound(m => m.NameSurname).Title("Name Surname").Width("%100"); columns.Bound(m => m.InstituteName).Title("Institute Name").Width("250px"); columns.Bound

Parsing dictionary-like URL parameters in Python

时光怂恿深爱的人放手 提交于 2019-12-08 16:19:36
问题 I'm working on implementing server-side filtering to serve KendoUI's Grid component, using Python. The problem I'm facing is that the AJAX call that it generates by default seems to be incompatible with both Flask's built-in URL parser and Python's urlparse module. Here's a contrived sample of the type of query string I'm having trouble with: a=b&c=d&foo[bar]=baz&foo[baz]=qis&foo[qis]=bar Here's the result I'm going for: { 'a': 'b', 'c': 'd', 'foo': { 'bar': 'baz', 'baz': 'qis', 'qis': bar' }

Post the Kendo Grid Data on Form Submit

a 夏天 提交于 2019-12-08 16:16:38
问题 I want to Post the data from a Kendo Grid to the server, and save it to a database. For this I have used form like so: @using (Html.BeginForm("MainDocumentSave","Document")) { <div class="row-fluid"> <div class="span10"> @(Html.Kendo().Grid<Invoice.Models.ViewModels.SegmentViewModel>() .Name("Segment") .TableHtmlAttributes(new { style = "height:20px; " }) .Columns(columns => { columns.Bound(p => p.AirlineShortName).EditorTemplateName("AirlineEditor").Title("Airline").ClientTemplate("#

How to set columns dynamically in Kendo template

谁说我不能喝 提交于 2019-12-08 16:14:55
问题 How to set columns dynamically in Kendo template for kendo grid.In my kendo grid,columns are subject to change dynamically based on user preference.How to dynamically create Kendo Template?I am using Kendo JavaScript,I can switch to Kendo MVC if same thing i can achieve there.Is there any other approach to achieve this? <script id="rowTemplate" type="text/x-kendo-template"> <tr class="k-master-row"> <td> <div>#=column1#</div> </td> <td><span class="mydesign" title="column2#"</span></td> <td>

Kendo UI Grid Not showing spinner / load icon on initial read

做~自己de王妃 提交于 2019-12-08 15:45:19
问题 I've set up my kendo ui grid to read data from an MVC action that returns JSON. I'm using the free version of Kendo and not the MVC specific, due to cost. The issue is that when the page loads and does the initial population of the grid it doesn't show the loading spinner. After grid is populated and I go to another page or sort a column it shows up. If I set the height parameter of the grid, I get the initial spinner but the grid only shows one row (should have shown 20). Does anyone know

Can a XmlHttpRequest take more time in IE than in Chrome?

我是研究僧i 提交于 2019-12-08 15:27:29
问题 I'm using a Web App (which is really big) so there are some parts of the application that I really don't know how they work. I am a front end developer and I'm consuming a REST API implemented with .NET Web Api (as far as I know) The request is simple - I use kendo Datasource to get the data from the server like this var kendoDataSource = new kendo.data.DataSource({ // fake transport with local data transport: { read: function(options) { // set results options.success(lookupValues); } },

How do you make a bar a different color in KendoUI bar chart?

回眸只為那壹抹淺笑 提交于 2019-12-08 15:26:14
问题 I'm am replacing my dot net charting with KendoUI. I'm showing a Score Distribution chart. I want all of the bars to be the same color except the bar with the median score and the Legend. How do I color a single bar a unique color? How would I color the Legend this new color? Below is my old dotnet charting bar chart and below that is the new KendoUI chart I'm trying to replace it with. I just need to get that coloring right and we'll be in business. Any help is appreciated. 回答1: Update: I'm