Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 12 11:35
    cscuser commented #2181
  • May 11 10:31
    v-zhgup edited #7143
  • May 11 10:31
    v-zhgup edited #7143
  • May 11 10:31
    v-zhgup edited #7143
  • May 11 10:14
    v-zhgup opened #7143
  • May 10 19:08
    sumitgsh commented #4738
  • May 07 01:48
  • May 07 01:45
    commit-lint[bot] commented #7142
  • May 07 01:45

    dependabot[bot] on npm_and_yarn

    build(deps-dev): bump lodash fr… (compare)

  • May 07 01:45
    dependabot[bot] labeled #7142
  • May 07 01:45
    dependabot[bot] opened #7142
  • Apr 17 07:40
    miteshjha007 commented #6245
  • Apr 08 21:03
    mportuga labeled #7140
  • Apr 08 21:03
    mportuga labeled #7140
  • Apr 08 21:03
    mportuga labeled #7140
  • Apr 08 20:20
    Coveralls angular-ui/ui-grid (master) 0%
  • Apr 08 20:17
    Travis angular-ui/ui-grid (master) passed (4846)
  • Apr 08 20:11

    mportuga on master

    fix: clearSelectedRows should r… (compare)

  • Apr 08 20:11
    mportuga closed #7141
  • Apr 08 20:11
    mportuga commented #7141
Yosi
@yosiasz
You need to write those changes to your db yourself
saranyavv
@saranyavv
Yes
Yosi
@yosiasz
Yep
venu
@thanneeruvenu
Hi

we are using angular v4.8.3 of angular ui-grid. Can you please let me know which version of angular ui-grid will solve below accessibility issues.
1.Ensures elements with an ARIA role that require parent roles are contained by them
2.Ensures elements with an ARIA role that require child roles contain them

Issues in grid with Jaws 17

1.The grid is read as table
2.The columns names are read as "column name" button
3.pagination - next and previous buttons - even though disabled - the cursor has focus on click of tab
4.Page combobox is read but JAWS reads as "To change for selection, Use the arrow keys". It should read as "Press Enter as it opens only on Enter and not using arrow keys

Yyan WU
@WuYouyan
Hello I'm using ui-grid in angularjs, here's my demo plunker for using ui-grid selection and grouping with big data set >10000 : http://plnkr.co/edit/Oqd1WHow01ssu43e
my question is:
Situation: I made a aggregation option for calculate sum of selected rows's value, when I checked a group header to select it's children rows(>400 lines), it takes a long time to calculate the custom aggregatiion result, i'm using '_.debounce(()=>updateGrid('column'),100)' in 'gridApi.selection.on.rowSelectionChanged' for refreshing the custom aggregation result.
Question:
Is there some way to improve performance of grid for refresh aggregation result (selected rows's sum)? I've observed that it runs many times to run method 'gridApi.selection.on.rowSelectionChanged'
Yosi
@yosiasz
what is this getAggregates? is it used?
@WuYouyan
Yyan WU
@WuYouyan
no it's not used, i will suppress unused codes @yosiasz
Yosi
@yosiasz
@WuYouyan how about this?
      gridApi.selection.on.rowSelectionChanged($scope, function (row) {
        $scope.debounceUpdateGrid();
      });
      gridApi.selection.on.rowSelectionChangedBatch($scope, function (row) {
        updateGrid('column'); 
      });
Yyan WU
@WuYouyan
rowSelectionChanged, I used this for upgrade my custom aggregation result when I check on uncheck a row
Yosi
@yosiasz
but check uncheck does not seem to be working
Yyan WU
@WuYouyan
yes
It works
when you click on column 'age' option 'selected Sum'
and then check a row
it works
Yyan WU
@WuYouyan
I wanna know if there is an efficient way to notify grid to update custom aggregation result when check a group with many chidren rows ? XD @yosiasz
Yosi
@yosiasz
yeah, you already stated that :)
Thomas Travis
@tppt
Hi all, hoping someone can help me. I'm running into an issue where i have a parent directive wrapping a child directive, and the child directive implements a uiGrid.
However, when I directly $compile the parent directive, the uiGrid fails with $scope.uiGrid set to undefined in ui-grid.js
ui-grid.js actually runs twice. The first time everything is correct, but on the second run, $scope.uiGrid is undefined
Yosi
@yosiasz
can you post a sample out in stackblitz or something?
Yosi
@yosiasz
@tppt something like this. help us help you
https://plnkr.co/edit/VO6F3vlOOwaudfi3RSVA?preview
Thomas Travis
@tppt
It's alright, I figured it out finally (hopefully). I was defining gridOptions in the link function rather than in a controller attached to the directive. Which worked the first time it rendered but as soon as it needed to be re-rendered for whatever reason it would crash uigrid.
Yosi
@yosiasz
:thumbsup:
probably did not render the 1st with a gridoptions which made it look like it worked but then when really rendering it , it throws chunks
?
Thomas Travis
@tppt
Well, it would render the first time; it would populate with data and I can play around with data. It was only when trying to rerender the directive that ui-grid.js would run twice, and the second run would win, setting $scope.uiGrid to undefined
Gaurav Mallick
@gmallick_gitlab
Hi I have used ui-grid-cellNav directive in grid html and after that I am not able to select cell data content of ui grid any option is there?
2 replies
Yosi
@yosiasz
Greetings, within the ui-grid, is it possible to move items to different rows?
we need to implement this to allow changing ranking of items
Jeff Grossman
@jeffgrossman3000
You might need to say more about your use case. In my program, I assign a sort to the field and use notify to make it rejigger the rows. If I wanted to move values around I would do so in the data itself (so, in js/ts/whatever) rather than make a ui-grid API call.
Yosi
@yosiasz
use case: cyber security related recommendations have action items. action items have Rank. But things change so rank needs to change. maybe I could implement an arrow up/arrow down buttons that do the rank change by updating the data.
@jeffgrossman3000 thanks !
Yosi
@yosiasz
@jeffgrossman3000 use notify? uigrid haa notify?
Jeff Grossman
@jeffgrossman3000
See http://ui-grid.info/docs/#!/!/api/ui.grid.api:PublicApi about a third of the way down the page, "notifyDataChange(type)"
After all computations are finished, I call: $scope.gridMonApi.core.notifyDataChange( uiGridConstants.dataChange.EDIT );
Yosi
@yosiasz
👀👏👏👏
But do you commit the change to storage or just UI change? Fascinating
Yosi
@yosiasz
Ah maybe I can do a commit but no need to refecth to refresh the grid as it already has modified underlying data
Jeff Grossman
@jeffgrossman3000
The point of the notify is to tell the grid to re-draw itself anew.
    var nrows = $scope.gridOptionsMon.data.length;
    for (i = 0; i < nrows; i++) {
        $scope.get1Rand(20);
        $scope.gridOptionsMon.data[i].stroll = $scope.randOne;
    };
    $scope.gridMonApi.core.notifyDataChange( uiGridConstants.dataChange.EDIT );
This code walks the "Mon" grid, assigns a number to the "stroll" field, and after the walk is over I make sure the user sees what happened.
Yosi
@yosiasz
Yosi @yosiasz May 07 23:50
Very nice so no need to reload the whole grid by recreating it