ng-grid

Add html link in anyone of ng-grid

筅森魡賤 提交于 2019-12-18 10:14:24
问题 I want to add link to ng-grid. Here is my code for your reference <html ng-app="myApp"> <head lang="en"> <meta charset="utf-8"> <title>Getting Started With ngGrid Example</title> <link href="../../Content/ng-grid.css" rel="stylesheet" type="text/css" /> <script src="../../Scripts/jquery-1.9.1.js" type="text/javascript"></script> <script src="../../Scripts/jquery-ui-1.8.20.js" type="text/javascript"></script> <script src="../../Scripts/angular.js" type="text/javascript"></script> <script src="

paste into ngGrid from excel

老子叫甜甜 提交于 2019-12-18 05:09:47
问题 Folks, Does anyone know how to make the ng-grid work with excel i.e provide the ability to copy-paste from excel into the grid ? I know of the enableCellEdit: true attribute but that don't make the grid work with excel. 回答1: HandsonTable http://handsontable.com/ is really awesome for this. The author is working on an angular directive on github: https://github.com/warpech/angular-ui-handsontable They now claim on their homepage that they charge money. They do have an open source version (it

How to set aggregation with grouping in ng-grid

ぃ、小莉子 提交于 2019-12-17 15:35:18
问题 I want to see totals (or generally any aggregation function) for each group in a grid. This was requested and closed as done in issue: https://github.com/angular-ui/ng-grid/issues/95 (but unfortunately without any example). I am able to redefine default template https://github.com/angular-ui/ng-grid/blob/master/src/templates/aggregateTemplate.html by aggregateTemplate config option. But I don't know how to extend it properly. This template is evaluating in ng-grid scope and I don't know how

Best way to represent a Grid or Table in AngularJS with Bootstrap 3? [closed]

橙三吉。 提交于 2019-12-17 04:09:18
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am creating an App with AngularJS and Bootstrap 3. I want to show a table/grid with thousands of rows. What is the best available control for AngularJS & Bootstrap with features like Sorting, Searching, Pagination etc. 回答1: After trying out ngGrid, ngTable, trNgGrid and

Color the background of a cell in ng-grid with rgb value in data

久未见 提交于 2019-12-13 21:01:11
问题 I am using ng-grid and I have a database that contains a column with rgb values such as #fc3b25, etc. I need to set the background color of each cell in the rgb column to the value contained in the database. In the libraryGrid, I have defined the columnDes as follows: { field: 'rgb', displayName: 'Key', width: '50px', cellTemplate: "<div style='height:60px; width:50px; background-color: {{ row.getProperty('rgb') }} ;' >rgb</div>" } This does not work. It seems that a directive might be

AngularJS: ng-grid does not work when using 'sortFn' and 'groups'

安稳与你 提交于 2019-12-13 14:58:09
问题 I wonder if it is possible to customize the sorting and grouping to use the same column. I made an example in Plunker where the 'groups' option is commented out. When this line is uncommented the grid does not display any records. $scope.myData = [{complex:{name: "Felipe", order: 3}}, {complex:{name: "Luciano", order: 1}}, {complex:{name: "Lucílio", order: 2}}, {complex:{name: "Joacás", order: 4}}]; $scope.gridOptions = { data: 'myData', groups: ['complex.name'], // does not work when

Angular UI-Grid Pivot

我们两清 提交于 2019-12-13 06:51:40
问题 I have a collection of these Javascript objects: (Displayed as a DTO) public class ParameterValueDTO : DataTransferObject { public int Id { get; set; } public String Comments { get; set; } public String Description { get; set; } } By default, AngularJS UI-Grid will create a row for each ParameterValue object with 3 columns: Id, Comments, Description which works fine. IMAGE: Standard objects mapping to table What I would like to do however is create a column for each object's "Comments" value

how to disallow selection with beforeSelectionChange for select All chekbox selection in ng-grid

北城余情 提交于 2019-12-13 06:24:24
问题 The beforeSelectionChange is being called with an rowItem array while clicking the select All checkbox in the header, no option to disallow selection. I have a requirement to disabled the checkbox for some row depending upon model. I can do it with CheckboxCellTemplate with configuring ng-disabled. But i want the disabled row not be selected when clicking on select all checkbox. Is there a way to do it? Thanks 回答1: Got this one fixed with the below solution, please let me know if you have a

Angular Ui grid Coloumndefs bug

心不动则不痛 提交于 2019-12-13 04:52:40
问题 When i am using the following code, this is working fine <!doctype html> <html ng-app="app"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js"></script> <script src="ht tp://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular-touch.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular-animate.js"></script> <script src="http://ui-grid.info/docs/grunt-scripts/csv.js"></script> <script src="http://ui-grid.info/docs/grunt

Setting the group option dynamically not working in ng-grid 2.0.7

霸气de小男生 提交于 2019-12-13 04:22:55
问题 I am creating a simple grid and getting the data from a json for both the columnDefs and the groups. Setting columnDefs works properly, with data: 'gridData' // Where gridData is $scope.gridData. but setting groups : $scope.groupsFieldsFromServer // This is ['fieldname'] is not working, it is just displays the grid as is, but the intended pre-grouping is not happening. Any help? 来源: https://stackoverflow.com/questions/17633955/setting-the-group-option-dynamically-not-working-in-ng-grid-2-0-7