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.
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.
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.
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.