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

Resolve items on open

1 Answer 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 22 Oct 2014, 04:37 AM
I am trying to make a Kendo Window (using Angular)  that will be included on multiple views/pages, so I am trying to make it self sufficient.  That being said,  I am wondering if there is the equivalent to the resolve configuration that bootstrap modals have.  This is what I'm doing in bootstrap and what I'm looking for Kendo to do (since I like the Kendo modals much more):

$scope.generateInvoice = function (id) {
            $modal.open({
                controller: 'generateInvoiceController',
                templateUrl: '/app/views/invoices/_generate-invoice.html',
                resolve: {
                    invoiceId: function() {
                        return id; // I want to pass the invoiceId in
                    }
                }
            });
        };

If this is not supported, can it be added in the near future? Or a workaround?

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 24 Oct 2014, 07:05 AM
Hello Matt,

Similar behavior could be achieved by subscribing to the Window's open event. Once it is triggered - call the refresh method and pass the parameters that are needed in the current context.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Window
Asked by
Matt
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or