Resolve items on open

2 posts, 0 answers
  1. Matt
    Matt avatar
    1 posts
    Member since:
    Feb 2012

    Posted 21 Oct 2014 Link to this post

    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) {
                    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?
  2. Alexander Popov
    Alexander Popov avatar
    1444 posts

    Posted 24 Oct 2014 Link to this post

    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.

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top