Saturday, March 24, 2012

Example of webparts

Some link, some examples of ATLAS webparts implementation ?

Giuseppe

http://blogs.neudesic.com/blogs/david_barkol/archive/2006/03/22/82.aspx

-Mike

My problem is that when the webzones are inside an updatepanel, When I go in deisgn mode, I can not move the webpart from a webzone to an other.

If I move the webzones out of the UpdatePanel all work fine


Is this using the April CTP of Atlas? We recently fixed several issues with WebPartZones inside UpdatePanels.

-Mike


Yes this append in April CTP, but the problem is very simple, you can not drag & drop (move) the webpart from a webzone to an other webzone when these are inside an updatepanel !!!


Professor,

I've got this solution. Your control that turns on design mode needs to be on the page (not in update panel) so every webpartzone will receive the message to except drops. Easy enough its just one page refresh. Yes I sometimes also get the drag inhibitor if I select a webpart for edit first before moving it. I thought it was my implementation because my editor zone has atlas drag positioning. But if I turn design mode to browse then back to design everything works fine. Its preview and a known bug. I had four problems with controls not working as webparts in March CTP and simply moved these controls outside of the updatepanel.

ASP.Net Menu Control

ASP.Net Upload Control

The control you use to switch webpart display modes

ASP.Net Catalog Zone Control

Check out my bloghttp://spaces.msn.com/sipjbydws400/blog/ I made a post on adding atlas to webparts I found it very easy, but remember Atlas is CTP Webparts are ASP.Net release quality.

Good Luck

DWS


When using WebParts with UpdatePanel, you should place all of the WebParts controls inside the UpdatePanel. This includes the WebPartManager and all WebPartZones, CatalogZones, EditorZones, and ConnectionsZones.

-Mike


Should you use seperate control panels for each web part to eliminate all web part firing at once?

If you create your web part as a usercontrol with the update panel on the user control do you have to place the web part in the control panel?


There are some issues in the April CTP with placing UpdatePanels inside WebParts.

-Mike


Yes Mike, there are some issues, and one of it is the fact that when you try to go in design mode from a Control that is placed inside of updatepanel, the webparts will be not movable.

If you move the control that set in design mode out the updatepanel, all will work fine.

Giuseppe


Are you talking about putting WebPartZones inside UpdatePanel, or UpdatePanel inside a WebPart? The first scenario should be working, and the second scenario is currently not supported.

I have not seen any issues with placing a control to set DesignMode inside the UpdatePanel. Can you post the smallest bit of code to reproduce this?

-Mike


I have dynamically created webparts (added in codebehind) working, and I have one webpart that has it's own update panel (end result is nested control panels) and it's actually working. However, putting a TimerControl inside the webpart does not work. It results in a full page postback on Tick.

I would like to encapsulate the behavior of the Webpart, so that the main page does not have to know specifics about each webpart, but I can't get the nested TimerControl working.

I don't expect anyone else is attempting to do what I'm trying to do, but if anyone does know about TimerControls I'd like to hear your ideas.

Here's the process:

-Main page has update panels surrounding each webzone
-On page init, a webservice is called telling the page what the webpart layout should be.
-A routine in code-behind assembles those webparts (which are all custom user controls, ascx files) and adds them in the appropriate zones

Everything is all good so far.

-Maybe one of the ascx files needs to refresh itself every few seconds, so it has a TimerControl
-I search each webpart looking for anything that needs to be registered with the Atlas Script Manager, and do so with the TimerControl
-that doesn't work.

As I mentioned, I have atlas-enabled one of those webparts resulting in nested updatepanels, and it works as it should... until I add a TimerControl

Thanks for any ideas!

No comments:

Post a Comment