1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    6
    Vote Rating
    0
    carlosjpedro is on a distinguished road

      0  

    Default Ext JS Portal

    Ext JS Portal


    I'm using the Ext JS Portal that i found in http://extjs.com/deploy/dev/examples/portal/portal.html. I'm trying to add new item to the portal on run time but having no sucess in it,
    shouldn't it be as simple as creating a new portlet and adding it to the portal or one of the portal columns,
    Thanks for the attention.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    add() the portlet to one of the portal columns and call doLayout() on the column.

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    6
    Vote Rating
    0
    carlosjpedro is on a distinguished road

      0  

    Thumbs up I'm quite a rookie

    I'm quite a rookie


    Thank you very very much.

    How ever, I'm very much a rookie with ExtJs, so I have another question, problem? Is it possible to save the state of the Portal, so that the next time the user uses it with the same browser it will look the same, with the same windows and the same position for each window?

    I've read in the API documentation about the Ext.state.Manager, but still don't understand how to use, or even if it will do what i expect.

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    You would need to:
    1. Write a getState() method for the portal that returns an object with all the information you'd need to restore the portal.
    2. Write a applyState() method for the portal the restores the portal layout based on the passed state.
    3. Specify stateEvents for the portal, so it knows after which events the state should be saved (you might need to add your own custom event).
    4. Make sure one of the stateEvents is fired when the portal changes.

  5. #5
    Ext User
    Join Date
    Jan 2010
    Posts
    1
    Vote Rating
    0
    anilkumarmca07 is on a distinguished road

      0  

    Default How to create porlet and add to portlet column?

    How to create porlet and add to portlet column?


    i am using portal in my application.now i am adding portlet to portal dynamically.but problem with adding portlet to portal.how to add portlet to portal dynamically.

  6. #6
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    See post #2.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar