kendo-ui

Kendo Grid do not play nice with Bootstrap dropdown or tooltips

早过忘川 提交于 2019-12-07 08:23:58
问题 I'm trying to use certain Bootstrap elements inside a Kendo Grid, for example Bootstrap dropdown buttons and tooltips. The problem is the dropdown or tooltips are always positioned below the row below or above. I've tried adjusting the z-index of the displayed elements, but this doesn't fix it. Has anyone managed to find a solution to this? 回答1: The .btn-group class, which is the container for the dropdown-menu is positioned relatively so altering the z-index of the dropdown-menu class won't

The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document

牧云@^-^@ 提交于 2019-12-07 08:23:49
问题 I have a Mvc with angular application. There are two layout files : Loginlayout: - Default layout MasterLayout: When click the Movie button , call the Movie Controller and Movie action. public ActionResult Movie() { return View(); } Its using mainlayout file: In Mainlayout file i have mentioned <script src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script> @Scripts.Render("~/bundles/bootstrap") <script src="https://code.angularjs.org/1.3.8/angular.js"></script> <script

Kendo TreeView Search with Highlight

℡╲_俬逩灬. 提交于 2019-12-07 07:53:07
问题 I have a KendoTreeview with spriteclass. I want to highlight the nodes (root as well as child nodes) with my search term. I have implemented the search functionality. But the issue when i search it is highlighting the term in the nodes but missing the SpriteClass in the nodes after first search. Any idea ? jsFiddle code $('#search-term').on('keyup', function () { $('span.k-in > span.highlight').each(function () { $(this).parent().text($(this).parent().text()); }); // ignore if no search term

how to retrieve id value in kendo menu

安稳与你 提交于 2019-12-07 07:31:22
问题 I am using kendo menu in my project.I want to retrieve id value when i click on the selected item. I used onSelect event and I am able to retrieve the selected item Text.can u tell me how to retrieve the id value 回答1: You can set an ID in the UL/LI structure from which you initialize it (check the Robotsushi's answer). However if you want to initialize the menu dynamically you can use something like this - http://jsfiddle.net/MMRCf/8/ 回答2: You can use HTML5 data atrributes to accomplish this.

Clear the filtering with out clicking clear button

*爱你&永不变心* 提交于 2019-12-07 06:56:30
问题 I have kendo-grid in my application.And its have filterable "true".When we apply the filtering then grid items are filtered and grid size also re-sized. when we clear the text in filter column then automatically grid display the items which is displayed in the page-load with out pressing clear button.is it possible? My grid code is var grid = $("#grid").kendoGrid({ dataSource: { type : "odata", transport : { read: "http://demos.kendoui.com/service/Northwind.svc/Orders" }, schema : { model: {

Kendo Grid: Getting widget instance in Angular

一个人想着一个人 提交于 2019-12-07 06:15:26
问题 I was trying to get an instance of the Kendo grid within my Angular Controller, so I can try and hook up to some events (and call methods) I know this is probably not best practice (and should probably use a custom directive), but according to the documentation, we should be able to use... <div ng-app="app" ng-controller="MyCtrl"> <input kendo-datepicker="datePicker" k-on-change="onChange()"> </div> <script> angular.module("app", [ "kendo.directives" ]).controller("MyCtrl", function($scope) {

Kendo-Grid column field validation

∥☆過路亽.° 提交于 2019-12-07 05:28:30
问题 I am working on populating kendo--grid with APIs data but on adding validation on one field is automatically working for every other fields too. Here is schema inside kendo-dataSource : schema: { model: { id : "id", fields: { id: { editable: false, type: 'number'}, name: { editable: true, type : "string" }, unique_url: { editable: true , type: 'string'}, image_url : { editable: true, type : "string" }, title: {type : "string", validation: { required: true, validateTitle: function (input) {

Kendo Grid filter to use combo box with column.values rather than drop down list

ぐ巨炮叔叔 提交于 2019-12-07 05:19:46
问题 I'm trying to get Kendo's Grid to show a filter using a combo box rather than a drop down list when used with values. What I mean is, on the grid columns array, each column can be given a list of values (objects with text and value properties) for each possible entry in the database, thereby rather than showing a code, it shows a recognisable name or text instead of the code. The problem is that whenever I specify values against the column, the filter reverts to a fixed list of criteria and a

ToDataSourceResult Extension not populating DataSourceResult object

别说谁变了你拦得住时间么 提交于 2019-12-07 05:13:44
问题 The extension method that KendoUI adds (ToDataSourceResult), seems to fail on Pages > Page #1. It works fine the first time the page loads, but then when I try to use it with virtual scrolling, to fetch pages, 2,3,4 ... N asynchronously, the method ignores all the data in the IEnumerable object I am trying to transform. My code is as follows: I have a MVC controller that fetches data like so: Database database = Database.GenerateDatabase(); ResultSet queryResults = database.GetEvents(

Kendo UI - Difference between observable, ObservableObject and Model

冷暖自知 提交于 2019-12-07 04:57:00
问题 What are the differences between the observable, ObservableObject and Model? Thank You. 回答1: Model inherits from ObservableObject which inherits from Observable. Observable provides support for events - the bind, unbind and trigger methods. ObservableObject provides change tracking. Used by the DataSource and the MVVM framework. Model provides identity (via the id field) and field definition. Used by the DataSource when schema.model is set. 来源: https://stackoverflow.com/questions/20246885