Hi
I have a component that contains a kendo-grid of "Organizations". Its name is "OrganizationTableComponent" . In the table there is a button "edit" used to open another component "OrganizationFormComponent" in a kendo-window using WindowService.
In the "OrganizationFormComponent" , in the ngOnInit() , I want to receive the country record to show it on the form
the following is editAction() method in the OrganizationTableComponent
public editAction(){
dataItem = this.selectedOrganization; // This is the seleced row
console.log('editAction',dataItem);
const windowRef = this.windowService.open({
title: 'Edit Organization',
content: OrganzationFormComponent,
width: 400,
top: 100,
// is it possible to pass the selected row here when opening the window
});
}
There is a work around. I created a service and stored the current selected row in the service