this one helps. I am using Angular http://ui-grid.info/. Facing issues when i have a dropdown in the Grid. , I solved it just by adding following property :-
this one helps. What you are doing is not the angular way. AngularJS is a model driven. UI manipulation should happen either When model gets updated, and hence cause the angular bindings to re evaluate. Using directives
Kendo DropDownList in Grid shows value after selection
To fix the issue you can do A previous SO answer by @Aman Mahajan offers a fix: A ui-grid-disable-selection class is added to the grid when both enableRowSelection and enableFullRowSelectionare enabled (can check ui-grid v3.1.1 source in selection.js ~line 903). So you can override the CSS class by adding a specific class to your grid, for example ui-grid-selectable.
may help you . I did some a little changes in your code. In your html I replaced "value" for "[value]". In this your code the option value is always the "category" string. If your use brackets, you will refer to the contents of a variable I created a buildService method for populate your services array Finally I call buildService when I selected the first component
<select data-placeholder="All Categories" class="category" value="category.categoryName" [(ngModel)]="selected" (change)="buildServices($event)">
<option selected="selected" style="display:none">Select Category</option>
<option class="select" *ngFor="let category of categories" [value]="category.categoryId">
{{category.categoryName}}
</option>
</select>
<select data-placeholder="All Cities" class="services location" value="category.categoryName">
<option selected="selected" style="display:none">select type of services</option>
<option *ngFor="let service of services; let i =
index" value="service.serviceId">{{service.serviceName}}
</option>
</select>
public buildServices() {
this.services = [];
this.categories.forEach((category) => {
if (category.categoryId == this.selected) {
this.services = category.categoryServicemodel;
}
});
}
Dropdown selection to show/hide based on selection using ng-bootstrap Angular 8
I hope this helps you . I'm using ng-bootstrap and Angular 8 and trying to show/hide a div based on the selection of the dropdown. It's not a usual dropdown using