All Questions
Tagged with angular7 angular-material
319
questions
1
vote
1
answer
92
views
Data is not rendered with mat-table [datasource] although it exists and is rendered with the "json" pipe
I am implementing a table with mat-table. I want to bind the data source to an array whose data is fetched by an API. When I fetch the data using httpclient and subscribe to the result, the table ...
1
vote
1
answer
1k
views
cdk virtual scroll issue when ever scrolling it down items are getting displayed slowly and sometimes blank for 2 secs
i am using angular virtual scroll in project so when ever i am scrolling it down items are loading but flickering for micro sec
trying with maxBufferPx and minBufferPx and positions to fix but not ...
0
votes
1
answer
717
views
Angular 7 - How to implement sorting in mat-table
I am trying to implement sorting in <mat-table> using Angular version 7.3.
Below is my source code:
<table
mat-table
[dataSource]='dataSource'>
<ng-container matColumnDef="...
-1
votes
1
answer
376
views
Problem with drag and drop and creating new element in html
im trying to implement a dinamic drag and drop (angular-material) in angular 7. The case is this:
I have multiples objects in a expansion panel with "Priority", i want to move that objects ...
1
vote
0
answers
926
views
show previous month dates at the starting of current month [duplicate]
I just started with angular material and I came across using date-picker from angular material 7 and I want to know if is there any way to show previous month dates (as greyed out) in current month ...
0
votes
1
answer
299
views
Value of count rows variable give me undefined although I assign it?
I work on angular 7 I face issue count rows variable give me undefined value
although returned data is 3
Expected result I need is Count rows must equal 3
public Countrows:Number;
ngOnInit(): void {
...
0
votes
2
answers
3k
views
How to call web API return Boolean from angular 7?
I work on angular 7 I face issue I can't call web API return Boolean from angular 7
so how call web API on angular 7 return true or false
[HttpGet]
[Route("CompareExcel/SelectedOptions&...
1
vote
0
answers
186
views
How to drag and drop between two separate angular components (not under the same parent)?
i'm new to angular and i need to drag and drop between two components (sidebar component and another component) .
I tried to use CDK drag and drop but cdkDropListConnectedTo and cdkDropListGroup works ...
0
votes
1
answer
319
views
MatTableDataSource return a promise for ~ 7000 lines
I have a problem when try to put a lot of data in mattabledatasource, I want at leas to display a loader but I don't know when data is already set. I try to use a promise like that :
return new ...
0
votes
0
answers
919
views
Multiple mat-header-rows not working with version 5.x angular material
I am trying to have multiple headers as shown in
https://stackblitz.com/edit/angular-bklajw-aazxkz?file=app%2Ftable-basic-example.html
version of material: "@angular/material": "5.2.x&...
0
votes
1
answer
6k
views
Angular mat-checkbox indeterminate not behaving as expected
I'm using Angular 7 and Angular Material 7.3.7, and I'm trying to create an unordered list of mat-checkbox. I am experiencing inconsistent behavior, where the indeterminate is not always showing when ...
0
votes
1
answer
155
views
How to get string[] array of unique item properties from Observable in angular2?
I am getting an Observable. each item have ItemType. items.ItemType have duplicates like Electronics, Household, Electronics.
I need a string array having unique ItemType and then select item from ...
2
votes
0
answers
117
views
Is there any method for implementing scroll for cdk drag drop
I have implemented cdk drag and drop in my application.
I am working in angular 7.
Angular material version is 7.3.7 and cdk version is 7.3.7.
My problem is while dragging a item in cdkDropList, if ...
0
votes
0
answers
191
views
Angular 7 Material autocomplete options not shown
I'm using the exact code from the angular page, with the only difference being I'm using Angular 7 and @angular/material 7.
component.html:
<!-- added to see that value is changing -->
<li *...
0
votes
2
answers
5k
views
mat table paginator and sorting issue for dynamic data
I am trying to implement mat table , problem is its sorting and paginator is not working , i have gone through all questions related same but unable to fix it . If I am getting 10 records it shows ...