Questions tagged [ui-grid]

For questions related to data grid module for AngularJS which is part of AngularUI.

should be used for questions related to data grid module for which is part of

Usage

<div ng-controller="MainCtrl">
  <div ui-grid="{ data: myData }" class="myGrid"></div>
</div>

References

483 questions
2
votes
1 answer

ui-grid: how does virtualizationThreshold work?

Currently, the docs for virtualizationThreshold state: Turn virtualization on when number of data elements goes over this number, defaults to 20 Does this actually mean that the virtualization engine is completely disabled if the grid has less rows…
csvan
  • 8,782
  • 12
  • 48
  • 91
2
votes
1 answer

AngularJS: How to export ui-grid data to excel?

i'm new in angularJS and i want to export my ui-grid data to excel file, with each value in each cell. It is possible? How? any examples? Thanks in advance.
Dan Misael
  • 25
  • 1
  • 1
  • 5
2
votes
2 answers

ui grid Filter and sorting not working when cellTemplate used

I am using ui.grid where some of the columns are populated with cellTemplate. It populates the value correctly, but the sorting and filtering is not working. Do I need to do anything with the sorting/filtering logic ? Issue is recreated @ Plnkr…
Sridhar
  • 1,832
  • 3
  • 23
  • 44
2
votes
0 answers

cell template in angular grid not visible in pdf

I am using ui-grid and want to export the table data in PDF through grid menu. $scope.gridOptions = { enableGridMenu: true, columnDefs: [ { name: "Group", cellTemplate: '
N.A
  • 855
  • 4
  • 13
  • 34
2
votes
1 answer

ui-grid get the current column (field) name from inside a custom sorting algorithm?

Once you define custom sorting for a column like in Github and UI-Grid How can you access the column from inside the algorithm? var myAwesomeSortFn = function(a,b, rowA, rowB, direction){ // "Need to access the name (field) of column being…
MishaT
  • 35
  • 8
2
votes
2 answers

UI-grid saveState service circular logic

Here is a summary of the problem: I set up a column sortChange() listener, which responds to sort changes by firing off a query to fetch newly sorted data. I save the grid state before the fetch, and restore the grid state after the fetch. The…
efreezy
  • 253
  • 1
  • 3
  • 12
2
votes
1 answer

Angularjs send search filter data with $http

We are using ui-grid. We want to search grid with many of its columns. So it is bit of awkward to send all the filter criteria on url as routeparams. Is it OK to make search web api request with $http.post? Or any other solutions?
Amal Shalika
  • 1,077
  • 1
  • 13
  • 22
2
votes
1 answer

Can I get a ui-grid with selection without check column?

Can I get a ui-grid with selection plugin enabled but without check column showing? My html mark
My js config $scope.gridOptions = { data: 'dirs', enableSelectAll: false, …
jesus.saad
  • 139
  • 2
  • 5
2
votes
1 answer

Ui-grid convert decimals to percentages

I'm currently try to display a grid for the monthly returns of a stock portfolio for multiple years. Currently the data is being displayed as a decimal to the nearest hundredth, how can I convert the decimal to a percentage to the nearest tenth of a…
user3628240
  • 877
  • 1
  • 23
  • 41
2
votes
1 answer

How to disable resize for specific column in angular ui-grid

Here is my column def $scope.gridOpts = { enableColumnResizing: true, columnDefs : [ {displayName:"Name",field:"name",width:'20%'}, {displayName:"Gender",field:"gender",width:'*'}, {displayName:"Company",field:"company",width:'60%'} …
Tom Tester
  • 21
  • 3
2
votes
0 answers

afterCellEdit for subGrid ui-grid

Do we have any api in ui-grid to capture the cell edit event for sub grid(expanded grid)? Just like gridApi.edit.on.afterCellEdit which works for parent grid? Thanks in advance!
Naishav Mehta
  • 306
  • 1
  • 2
  • 14
2
votes
1 answer

Angular UI-grid options

Currently I have a grid that has a option to click and show the grid options on the far right side. The issue I'm having and I am wondering if there is a setting I can add for the grid options dropdown to automatically close when a user clicks off…
Buccaneer
  • 141
  • 13
2
votes
1 answer

can be other property in $scope.gridOptions.columnDefs

I want to put a custom property in $scope.gridOptions.columnDefs, e.g: $scope.gridOptions.columnDefs = [ { field: 'field', displayName: 'Name Field', cellFilter: 'nameField', headerCellTemplate:…
rossoneri
  • 443
  • 5
  • 17
2
votes
1 answer

How to group data after cellFilter is applied UI-Grid

Does grouping always happen on the actual field data or can it be down after cellFilter is applied ? like we can do it in filter and sorting using sortCellFiltered: true, filterCellFiltered:…
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
2
votes
1 answer

UI-Grid How to access binding values in nested JSON arrays

Can someone guide on the correct syntax for accessing binding values if the data is a nested JSON array. Here is the plunker for the use case http://plnkr.co/edit/tizLxnAtgqDnptiEb3mg?p=preview Basically, as you can see here address is a collection…
Shoaib Khan
  • 899
  • 14
  • 26