PDA

View Full Version : Help Needed in the Portal/Portlets



Jagaran_Das
4 Nov 2009, 5:10 PM
Hi,

I am very new to extjs.
I am trying to create a dashboard like "www.dnexlookup.com" has.
I reused Portal2 sample code.
But the problem
1. I am facing a issue when ever you uncheck and check the settings in west panel
portlet is not getting reflected. You need to refresh the page.
2. How do we do add/remove like "www.dnexlookup.com".


Please let me know if anybody has sample code from which i build upon.

Thanks and Regards,
Jagaran

mitchellsimoens
4 Nov 2009, 6:12 PM
Are you just asking about the panels that get added when you check a checkmark? Are you making sure to do a doLayout() when you add() the panel?

Jagaran_Das
5 Nov 2009, 1:56 PM
yes.
Actually I just wanted to simulate the "www.dnexlookup.com".
Any good pointers from where I can start.
I need a menu kinda thing from where user can select their port lets.

mitchellsimoens
5 Nov 2009, 9:18 PM
Be pretty easy, in the handler funtion (or you can add listeners), check to see if it is currently checked then add a panel to the center. If it is unchecked then remove the panel.

Each time, don't forget to do a doLayout() of the center when you add/remove a panel. This will change the actual layout.

Jagaran_Das
8 Nov 2009, 6:40 PM
can i get some sample code snippet??
thanks nways