Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Jeff Grossman
@jeffgrossman3000
@AntoJosh Sorry but I'm lost. What is the Use Case you are trying to implement?
Enkhbold70
@Enkhbold70
hello, i need some help on scrolling. When scroll for uigrid then chrome shows [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
does somebody knows resolution ?
Peram Ajaykumarreddy
@ajaykumara22_twitter
hi

i need hierarchy from column level.

no need row level.is there any future in column level hierachy

Kohei Nozaki
@nuzayats

Hello, I'm looking for a way to get the row which has just been selected in the gridApi.selection.on.rowSelectionChangedBatch handler function.

For example, in this Plunker http://plnkr.co/edit/14Px9QKfnoydU2sZ , let's say I do the following:

  1. Select the row whose Name is "Terry Clay"
  2. Select the row whose Name is "Hatfield Hudson" with the shift key pressed
  3. Select the row whose Name is "Sandoval Mclean" with the shift key pressed

At the step 2, I'd like to get the row object whose Name is "Hatfield Hudson".
At the step 3, I'd like to get the row object whose Name is "Sandoval Mclean".

In other words, here is what I want to do:

gridApi.selection.on.rowSelectionChangedBatch($scope,function(rows){
    // **** Question ****
    // Is there any way to reliably get the row which has just been selected here?
    // i.e. How can I find out which is the one which has just been selected out of the following ("head" and "tail") ?
    var head = rows[0];
    var tail = rows[rows.length-1];

    $log.log(head.entity.name);
    $log.log(tail.entity.name);
});
Kohei Nozaki
@nuzayats
I'm wondering I might need to intercept $scope.selectButtonClick() calls but I have no idea how it can be done.. Any ideas? Any help would be appreciated https://github.com/angular-ui/ui-grid/blob/9854f69ac6e4f0fcbf875531be3c638f7b21765a/packages/selection/src/js/selection.js#L797
1 reply
Jeff Grossman
@jeffgrossman3000
@nuzayats Hi. I think you misunderstand what 'batch' means in this grid: you only get a batch event via the API or the 'select all' checkbox. See enableSelectionBatchEvent at http://ui-grid.info/docs/#!/api/ui.grid.selection.api:GridOptions ; you might do better to simply call getSelectedRows() and save your index into it between calls.
2 replies
Alhaji Mohamed Kanu
@Kanualhajimohamed
Good day to you all
Alhaji Mohamed Kanu
@Kanualhajimohamed
am working on a form which will display startDate or endDate if the record you choose is 1 and display visibleUntil or visibleSince if you choose 3. in the same column of the Start Date and End Date in Angular. any help from you guys
this is the code
<td nowrap="nowrap" width="10%" class="text-left px-1" [ngStyle]="{'background-color':items.status === 0 ?'#f38075':'#ffffff'}" *ngIf="items.activityType.id === 3">
{{items.startDate | date :'MM/dd/yyyy' }} {{items.visibleSince | date :'MM/dd/yyyy' }}
</td>
Aravind Rajendran
@aravind-rajendran
Hi . Can any one say me ! Can we add row and delete row feature in UI grid . Thanks in advance
Yosi
@yosiasz
@Kanualhajimohamed is your question about ui-grid?
@aravind-rajendran you are in control of the grid, adding and deleting row comes with ui-grid
Jeff Grossman
@jeffgrossman3000
@aravind-rajendran You don't do anything to the grid directly, you just add or remove things from the data array behind it. Does that help?
susreemohanty
@susreemohanty
Hi All, We are automating UI-Grid using Selenium webdriver with C#.we are facing lot of challenges with using selenium webdriver with C#.Can anyone suggest which tool to use UI-Grid? With selenium we are able to get columns till 30 beyond that we are not able to get the values.
Yosi
@yosiasz
you have following options. @susreemohanty https://www.selenium.dev/downloads/
Not sure if these would be of help to do some small poc with each minus c#
deeprajmaurya
@deeprajmaurya
Hi Everyone, How can I sort the elements in GridMenu ?
Above is he stackoverflow , please help out
Jeff Grossman
@jeffgrossman3000
Your use case is vague. Do you want the grid to open up already sorted, do you want the user to be able to click on a column header to sort on that column, or do you want to write script for (e.g.) a button to sort the grid from outside?
deeprajmaurya
@deeprajmaurya
I just want gridMenu elements to sorted in alphabetical order not the grid columns
Jeff Grossman
@jeffgrossman3000
Ah. I think it has no sorting facility. I think you'd have to reorder them in the ColumnDefs.
Ghost
@ghost~57cbaf6040f3a6eec0634f49
Hi, I need to show a placeholder in the UI grid editor. How can I do that?
Ghost
@ghost~57cbaf6040f3a6eec0634f49
Hi, I have used cellTemplate:'<input placeholder="Required">' to achieve the placeholder in the cells. But now I want to limit this to only first two cells out of 100. How it is possible to do it?
Ghost
@ghost~57cbaf6040f3a6eec0634f49
Hi, solved the above problem using this code
cellTemplate:'<input placeholder="Required" ng-show="rowRenderIndex < 2">'
Femi
@Femmi
Guys, please correct me if I am wrong. Does the Grid work for Angular V2 and up?
Yosi
@yosiasz
@Femmi
http://ui-grid.info/
AngularJS
Femi
@Femmi
Thanks @yosiasz
deeprajmaurya
@deeprajmaurya
Can we create a multiple sheets inside the exported excel? do we have that functionality ?
Yosi
@yosiasz
@deeprajmaurya so from one ui-grid you want to export to multi sheet excel?
deeprajmaurya
@deeprajmaurya
@yosiasz Yes exactly
Is ui-grid has that functionality ?
Yosi
@yosiasz
nothing built in.
it is one csv 1 sheet one
deeprajmaurya
@deeprajmaurya
So can I bulit that functionality?
Yosi
@yosiasz
that is up to you.
using 3rd party modules
deeprajmaurya
@deeprajmaurya
because internally it is using excel bulider , which also does support creating multiple sheets , and it is not maintained also
Any other suggestion for 3rd party modules?
Yosi
@yosiasz
no idea
RanjithMathi
@RanjithMathi
Can you help me to get the sorted values from ui-grid with ui-grid-pagination?
Jeff Grossman
@jeffgrossman3000
@deeprajmaurya Maybe something in this SO post can help you?: https://stackoverflow.com/questions/42583544/a-complete-example-using-excel-builder-js
Ghost
@ghost~5f5ca7bed73408ce4feeb43d
how to integrate token based authentication in angular?
Yosi
@yosiasz
@thiru-kumaran this is angula-ui but here is something for you to read.
Ghost
@ghost~5f5ca7bed73408ce4feeb43d
Thanks @yosiasz