Results 1 to 3 of 3

Thread: Navigation from one view to another view

  1. #1
    Sencha User
    Join Date
    Oct 2013
    Posts
    200
    Answers
    3

    Default Navigation from one view to another view

    Hi All,

    I am stuck while navigating one view to another view. what i am doing -

    i am rendering viewport in a div of index.html file for which id is whitespace

    on click of a button -
    var viewToLoad = Myapp.view.otherview.create();
    Ext.fly('whitespace').update('');
    viewToLoad.render('whitespace');

    Ideally it should clear the viewport content and render the new view but it is appending the second view down to the first view.

    Please help !!

    Suggest some possible ways to do navigation effectively.

    Thanks,
    Ankit

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716

    Default

    >>> i am rendering viewport in a div

    Viewport is meant for the entire body and have 1 instance per app. You should try with a panel/container.

  3. #3
    Sencha User
    Join Date
    Oct 2013
    Posts
    200
    Answers
    3

    Default

    Thanks for replying !!

    So do we require to include all the components/views of our app in viewport and navigating it by show/hide methode.

    or is there any other way to render the components in a div available in index.html ??

    Please suggest !!

    Thanks,
    Ankit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •