kendo-ui

Mapping XML child elements to a Kendo UI DataSource

孤街醉人 提交于 2019-12-24 22:40:19
问题 I'm struggling with mapping and displaying a list of child elements on a XML datasource, using Kendo UI Mobile. Consider the following straightforward XML structure: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <topics> <topic id="1" title="Weather"> <header>Great weather today!</header> <smallicon>foo_bar.png</smallicon> <items> <item>It's great weather</item> <item>Sunny feeling</item> <item>Raining like a dog</item> </items> </topic> <topic id="2" title="Politics"> <header>Left

Kendo chart display issue

假如想象 提交于 2019-12-24 22:03:53
问题 I have a kendo-chart with the below Json data sample.I have to show the data like in the two X- Axis one with Iron Type and other with manufacturer.Let me explain with an example. I have iron types as Swivel and Adapter.And manufacturers as SPM and FMC. Now in the X-axis under Swivel Iron type i have to show FMC ans SPM bar chart against Total Failed,Total passed and Total Processed. and one line chart based on percentage. Can anyone help me on this how to achieve with the below data. [ {

Extend Kendo MultiSelect

南楼画角 提交于 2019-12-24 18:57:13
问题 I'm trying to create a new kendo multi-select widget by extending the existing one. The goal is to show the tag list in a div below the input. My goal here in this code is to render the tag list in a separate div on the select event of the widget, and then return the select event of the base widget (Kendo MultiSelect), but the select event of the base widget returns a dataItem undefind error. What am I doing wrong? (function ($) { var customMultiSelect = kendo.ui.MultiSelect.extend({ init:

Selenium with Kendo UI

为君一笑 提交于 2019-12-24 18:55:29
问题 We are using Kendo UI for our buttons and textbox. It is causing issues for selenium. If user test manually then steps are>> they drag their mouse over to the text box, the text box is highlighted and the user clicks on the textbox. Then the cursor starts to show up and the user can type in. As for selenium 'driver.findElement' is able to find the textbox but not able to get a cursor. I tried textbox.click and mouse event too, 回答1: Try to set value of element using the executeScript method:

Data Annotate multiple CheckboxFor columns as required in MVC

爷,独闯天下 提交于 2019-12-24 16:35:38
问题 I am having two Kendo checkboxes and I want to validate it as checking atleast one of them is required. <h4>Choose your favorite dance form</h4> <div class="form-group"> <div class="col-md-6"> @(Html.Kendo().CheckBoxFor(e => e.Salsa) .Name("Salsa") .Label("Salsa")) <br /> @(Html.Kendo().CheckBoxFor(e => e.Latin) .Name("Latin") .Label("Latin")) </div> </div> Below is how my properties are defined in my Model: public bool Salsa { get; set; } public bool Latin { get; set; } How can I data

Wrong currency unit in Kendo

你。 提交于 2019-12-24 15:08:41
问题 In my website I use the Kendo-grid. In that grid, there is a column "Amount" with these values: You see that there are dollar-signs before the amounts, but I want euro-signs. The globalization-culture settings are correct, because when I show an amount outside the grid, it shows me the amount with a euro-sign. I'm developing this website with ASP.NET MVC5. In my model I have this property: [DisplayFormat(DataFormatString = "{0:c}")] public decimal Amount { get; set; } You see that I format my

Kendo UI grid: refreshing grid data every 60 seconds with new data: dataSource and observe()

為{幸葍}努か 提交于 2019-12-24 14:15:17
问题 I want to refresh the Kendo UI grid's contents every 60 seconds with up-to-the-minute data. EDIT: Here's how the dataSource is being assigned at initial configuration: parsedData = $.parseJSON(data); var dataSource = new kendo.data.DataSource({ data: parsedData }); $("#grid").kendoGrid({ dataSource: dataSource, . . . Can the grid's dataSource simply be reassigned in one fell swoop? Or would it be better to remove the items in the dataSource.data individually, or by clearing the array, and

Set tag attribute based on variable value with kendo binding

落花浮王杯 提交于 2019-12-24 14:04:27
问题 I create a variable list of input elements which are bound to a kendo MVVM. I have a kendo validation running over all my input elements (this is standard functionality), checking if the input is empty. The objects in my MVVM have an attribute IsMandatory, like this: { Name: "test", ID: 12, ... , IsMandatory: false } The validation must not try to validate elements with an IsMandatory value of false. How can I achieve this? I know I can bind attributes to MVVM values like this: <input data

How to add in KendoUI MVC Grid a thousand comma separator

浪子不回头ぞ 提交于 2019-12-24 12:51:24
问题 I want to display 1000 like 1,000 in Grid (Must have commas). Initial data type is string. I need thousand comma separator. I have the same questions as in How to change display format of long variable?. But my data type is string. In this topic they did not have clear answer for KendoUI MVC Grid for thousand comma separator. I have KendoUI Grid @(Html.Kendo().Grid((IEnumerable<MyApp.Models.MyModel>)ViewBag.QualReq) .Name("MyGrid") .Columns(columns => { columns.Bound(p => p.Actual); })

MVC: get uploaded filename back in grid column

一世执手 提交于 2019-12-24 12:43:57
问题 I have an MVC razor form with a Kendo grid. The grid has an asynch image uploader. @(Html.Kendo().Grid<CraftStore.Models.Catalog>() .Name("CatalogGrid") .Columns(columns => { columns.Bound(p => p.CatalogName).Filterable(true).Width(240); columns.Bound(p => p.CatalogDescription).Filterable(true).Width(340); columns.Bound(p => p.ModelNumber).Filterable(true).Width(110); columns.Bound(p => p.SerialNumber).Filterable(true).Width(110); columns.Bound(p => p.InventoryCount).Filterable(true).Width