Hi,
I'm using a dropDownList in a navigation bar and I'd like to reset the dropdown to display the [defaultItem] every time I click in another navigation button. The other buttons get highlighted to show that the user is at that location. So to avoid confusion, I want the dropdown to reset. These buttons are not Kendo components but <a> links and I'm planning to use "(click)="resetDropdown($event)" to call the action.
Here is my code:
Also, I'd like to know if I can change the color of the dropdown button (when in closed state). I was able to add an icon but I could not find a way to edit the color.
Thanks,
Carla
I'm using a dropDownList in a navigation bar and I'd like to reset the dropdown to display the [defaultItem] every time I click in another navigation button. The other buttons get highlighted to show that the user is at that location. So to avoid confusion, I want the dropdown to reset. These buttons are not Kendo components but <a> links and I'm planning to use "(click)="resetDropdown($event)" to call the action.
Here is my code:
<kendo-dropdownlist [defaultItem]="selectGateDefaultItem" [itemDisabled]="gateChecklistItemDisabled" [data]="gates | async" [textField]="'NAME'" [valueField]="'ID'" (selectionChange)="openGatePage($event)" [popupSettings]="{height: 100, width: 280}" [iconClass]= "gateIcon" id="gateChecklistDropdown" style="width: 250px"> <ng-template kendoDropDownListItemTemplate let-dataItem> <span class="template">{{dataItem.NAME}}</span> </ng-template> <ng-template kendoDropDownListValueTemplate let-dataItem> <span class="selectedValueTemplate">{{ dataItem.NAME }}</span> </ng-template></kendo-dropdownlist>Also, I'd like to know if I can change the color of the dropdown button (when in closed state). I was able to add an icon but I could not find a way to edit the color.
Thanks,
Carla
