Hi Martin,
Thanks for ur response.
I tried your solution. Focus is setting in the button.On ok button click I written code to close the window. But When I press Enter, Window is not closing.
Guess focus is in window.
<jqxWindow #window
[width]=”500″
[height]=”400″
[minHeight]=”300″ [minWidth]=”300″
[isModal]=”true” [autoOpen]=”false”>
<jqxButton #okButton (click)=”closeWindow($event)” [width]=”100″>OK</jqxButton>
<jqxButton #cancelButton [width]=”100″>Cancel</jqxButton>
</jqxWindow>
TS:
export class AppComponent {
@ViewChild(‘okButton’) onButton: jqxButtonComponent;
@ViewChild(‘window’) windowRef: jqxWindowComponent
openWindow(e){
this.onButton.focus();
e.stopPropagation();
this.windowRef.open();
}
closeWindow(e){
this.windowRef.close();
}
}
Thanks & Regards,
Govi