kendo-ui

Kendo Grid: Setting Model fields on combox selection breaks the combobox up/down arrow scrolling

[亡魂溺海] 提交于 2019-12-12 03:07:05
问题 this follows in from another post to do with setting a grid's selected fields when we have a data source field (and combo fields) with a json object (as opposed to a simple string). So if we look at the change event handler for the following combox... function createCombo(container, options, data) { var input = $('<input name="' + options.field + '" />') input.appendTo(container) input.kendoComboBox({ autoBind: true, filter: "contains", placeholder: "select...", suggest: true, dataTextField:

Loop-generating Kendo DropDownListFor in jQuery doesn't initialize properly

十年热恋 提交于 2019-12-12 03:06:13
问题 I'm trying to create an Editor Template for a ViewModel and I see that Kendo controls are facing issues after being generated. Here is the ParkingServiceDetail.cshtml file: @model List<DA.Services.CarPark.Presentation.Web.Models.ParkingServiceDetailViewModel> <div id="@ViewData.TemplateInfo.HtmlFieldPrefix" style="margin-top:10px"> <table class="table table-bordered table-striped table-hover" id="grid"> <thead> <tr> <th data-field="TerminalId">Terminal</th> <th data-field="ServiceId">Service<

Kendo MVVM Dropdown - How to set initial value based on other data?

ε祈祈猫儿з 提交于 2019-12-12 03:01:22
问题 I have the following html for a Kendo MVVM DropDownList: <select id="responseTypeDDL" data-role="dropdownlist" data-text-field="SystemResponseTypeCode" data-value-field="SystemResponseTypeId" data-bind="value: selectedSystemResponseTypeCode, source: responseTypes"> </select> This is my view model: SC.ViewModels.Reference.ResponseTypeDataSource.read(); var responseTypeDDL = kendo.observable({ responseTypes: SC.ViewModels.Reference.ResponseTypeDataSource, selectedSystemResponseTypeCode: null,

Custom Legend Label

我是研究僧i 提交于 2019-12-12 02:58:51
问题 I have the following implementation, it works and functional. However I would like to assign fname attribute as a legend, not series attribute. I believe that I need to work on the following line of code, but I could not able to figure out yet. var label = new kendo.drawing.Text(e.series.name, [0, 0], { fill: { color: "black" } }); http://jsfiddle.net/1ost124j/1/ 回答1: Something like e.series.data[1].fname should do it. More accurately (based on your suggestion) the below is the fully working

Data not showing in Kendo MVC Grid

人走茶凉 提交于 2019-12-12 02:58:25
问题 I've used Kendo Grid for showing data.It seems data is passed correctly because when I tracing my code in run time, I see there are some data in result but Kendo Grid couldn't show the data. How can I solve this problem? EDIT DESCRIPTION: I found cause of problem but I cannot solve it. If I remove this line in my ViewModel in QueryBuilder() method, Tags = article.ArticleTags.Where(c => c.ArticleId == article.Id).Select(b => b.Tag).Distinct().ToList() Grid show data but I need values of Tags.

How to Pass Kendo DropDownList DataTextField value to Controller

喜你入骨 提交于 2019-12-12 02:58:07
问题 I have a Kendo DropDownList on the View and I want to pass its DataTextField value to the Controller and then pass and them on the labels in another View . Although I can pass DataValueField values to the Controller , I cannot pass DataTextField values. I tried to apply different scenarios but I could not. Any idea? On the other hand, if it is not possible, should the DataTextField values be populated again on the Controller and return to the other View ? View: @model IssueViewModel ... @Html

How do i get a folder icon on all the parent nodes and folder plus icon on all the child nodes(icon shoulbe on left side)

走远了吗. 提交于 2019-12-12 02:52:01
问题 I want to get icons before the nodes of the Parent node and the child nodes. For parent nodes it should be icomoon-icon-folder-plus and for child nodes it should be 'icomoon-icon-folder'. function treeView() { var treeMenu = new kendo.data.HierarchicalDataSource({ template: kendo.template($("#treeview-template").html()), schema: { model: { id: "id", expanded: false, hasChildren: "HasChildren" } }, transport: { read: { url: "/getTreeDetails", contentType: "application/json; charset=utf-8",

.NET Kendo Scheduler: dynamically change datasource resources

戏子无情 提交于 2019-12-12 02:48:32
问题 Now i'm using a datasource like this: (with the parameters to filter hard coded) $(function () { $("#scheduler").kendoScheduler({ date: new Date(Date.now()), startTime: new Date(2013, 5, 13, 9, 0, 0, 0), height: 800, timezone: "Etc/UTC", group: { resources: ["Rooms"] }, resources: [ { name:"Rooms", title: "Room", field: "RoomID", dataSource: { transport: { read: { url: "@Html.Raw(Url.Action("Filter_Rooms", "Room", new{ pPar1= true, pPar2 = false, pPar3 = true, }))", dataType: "json" } } } }

Binding Kendo Data Source with Async $.ajax calling from C# MVC Controller Action

梦想与她 提交于 2019-12-12 02:47:28
问题 This is my action in controller. Which return a List> converting into DataSourceResult.and also Serializing into Json. [HttpPost] public ActionResult GetMissingShiftData([DataSourceRequest]DataSourceRequest request) { DataTable dtResponse = new DataTable(); var dynamicList = new List<dynamic>(); var myMainList = new List<List<dynamic>>(); List<DataSourceResult> viewResultList = new List<DataSourceResult>(); string RigNumber = string.IsNullOrWhiteSpace( resultData.Filter.SelectedRig.RigNumber)

How to get a different grid as child from a different row of another grid using Kendo detailInit function

落爺英雄遲暮 提交于 2019-12-12 02:45:20
问题 I have made a grid with buttons in each row which on-click opens a pop-up having different grids on each button. Each row of the pop-up grid may have a child (another grid with only one column). And if there is no child it should be empty. So, I'm trying to map each row with a child using parent-Id(PId) and (Id) as shown in the given example, which is taking all the available child's into a row or taking none of them into it. Dojo Sample Code 回答1: Using detailInit requires a slightly