This is a migrated thread and some comments may be shown as answers.

Send data from dialog back to component

5 Answers 2005 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
GT
Top achievements
Rank 1
GT asked on 29 Mar 2018, 03:51 PM

Hi,

With reference to this plunker https://plnkr.co/edit/I7tZsoJMrtVVPtR33DZF?p=preview, is there a way to send data from the dialog back to AppComponent only when click on save button?

Thanks.

 

5 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 30 Mar 2018, 07:28 AM
Hi,

You could subscribe to the result event stream of the Dialog to determine the choice of the user. This is demonstrated on the following documentation page:

https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/

Regards,
Dimiter Madjarov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
GT
Top achievements
Rank 1
answered on 30 Mar 2018, 11:11 AM

Hi,

Thanks for the reply. I have another question.

With reference to this updated plunker:

https://plnkr.co/edit/I7tZsoJMrtVVPtR33DZF?p=preview

Is there a way to retrieve the data that was input in the Add Address dialog from the AppComponent?

Thanks.

 

 

0
Dimiter Madjarov
Telerik team
answered on 30 Mar 2018, 11:20 AM
Hello,

This could be achieved the same way it is implemented for the user in the first Dialog i.e. by storing him in the userInfo variable. Is this not suitable for this case too?

Regards,
Dimiter Madjarov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
GT
Top achievements
Rank 1
answered on 30 Mar 2018, 02:46 PM

Hi,

I was wondering if there is a way to send data via the action button so I could subscribe to the result & retrieve the data with something like result.dataFromDialog

Thanks.

0
Dimiter Madjarov
Telerik team
answered on 02 Apr 2018, 07:38 AM
Hi,

Such result stream with all data from the Dialog is not available. The result Dialog stream should be used in this case to determine the choice of the user, while the data should be bound to class variables.

Regards,
Dimiter Madjarov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
GT
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
GT
Top achievements
Rank 1
Share this question
or