kendo-grid

Kendo grid Insert new record on the last page, last row position

戏子无情 提交于 2019-12-07 11:40:42
问题 I'm using kendo grid in inline GridEditMode and GridInsertRowPosition set to bottom. Ajax is used for the data binding. Sorting is enabled and sorted by DateTime field. Page size is set to 10. To problem occur when there are multiple pages (more that 10 records). I have a javascript function that jumps to the last page and show new row at the bottom. But on some point sort event is triggered, and grid moves to read only mode. Is there a possibility to prevent Grid sorting only for the case

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 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) {

Multi-column Headers With Kendo Grid

不羁的心 提交于 2019-12-07 05:28:22
问题 I don't know what this is called, and I've messed around a lot with the headerTemplate but can't figure out how to produce this look. I need the second row of column names to 'act normally' in terms of sorting and filtering, but everything I try breaks that. I have no idea if headerTemplate is even the right way to do this? Is there a name for this kind of grouping? My research is turning up a whole lot of nothing, so I suspect I'm using the wrong keywords. What is this layout called? Note:

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

kendogrid filter menu closing on mouseleave

天涯浪子 提交于 2019-12-07 04:54:57
问题 in a kendogrid with kendogrid.columnMenu: true like this http://jsbin.com/AsEtoDik/2 there's a very annoying behavior: when you try to set a filter and the mouse goes out of the filter panel, it closes. It happens a lot especially filtering on a date column. I guess this is intended but it's not very user friendly. I thought about setting a timer after the mouseleave event, delaying the closure of the menu, in jQuery but it looks rather difficult and I'd appreciate some help or suggestion 回答1

Getting Can't bind to 'routerLink' since it isn't a known property of 'a'. error in spite of referencing router moudule

喜欢而已 提交于 2019-12-07 04:48:30
问题 I am implementing basic routing in my angular 4 application and getting the following error when loading the application on the browser. I have defined the routes in approuting.module as also referenced the router module in Ngmodule as well approuting.module. Not sure what the problem is Can't bind to 'routerLink' since it isn't a known property of 'a'. Can't bind to 'routerLink' since it isn't a known property of 'a'. ("ew" [hidden]="!dataItem.isVisibleView"> <a [ERROR ->][routerLink]="['

how to get the reference for checkbox element from both parent and child grids

人走茶凉 提交于 2019-12-07 04:38:04
问题 I have got requirement like i need to find the parent grid row checkbox and if parent grid row checkbox is checked then i need to set all child grid checkboxes to true for that parent grid row checkbox for that purpose I have done like this.... <script type="text/javascript"> $(document).ready(function () { $('#btnMove').click(function () { var parentgrid = $('#GridParent').data('kendoGrid'); var childGrid = $('#GridParent').closest(".k-grid").data("kendoGrid"); var Count = $('#Gridparent')

Adding custom button to KendoGrid Toolbar Issue

丶灬走出姿态 提交于 2019-12-07 04:04:00
问题 Hi I've added a button to the toolbar of my KendoUI Grid, but I have a couple of issues, I'm hoping someone can assist with. I've tried to add one of the kendo web icons next to the button but it doesn't render. When I click the button in the toolbar I see the following error in the console: Uncaught ReferenceError: sendEmail is not defined. I don't understand why it isn't seeing my function. Just for testing purposes I'm displaying an alert until it sees it. toolbar: [ { name: "create", text