Showing posts with label parts. Show all posts
Showing posts with label parts. Show all posts

Monday, March 26, 2012

Atlas Web parts

Has anyone figured out how to use atlas panel with web parts I have been able to use the update panel with the webparts and they work fine, but when i use it with the control that changes the mode for the page it doesn't change the page, any ideas?

The problem was i had multiple update panels and didn't add a trigger to set off the others. I did change this now to put everything in one update panel, but now i lose the ability to drag and drop, anyone got an idea for that?

www.aspnetsource.com


When I place more than one update panel on a page the drag and drop functionality no longer work Or if i place a dropdown list which changes the mode and place it inside the update panel the drag and drop no longer work?

<asp:DropDownListID="ddlDisplayMode"runat="server"AutoPostBack="true"OnSelectedIndexChanged="ddlDisplayMode_SelectedIndexChanged"Width="120"></asp:DropDownList>

If you put the above inside the panel the drag and drop for web parts no longer works.


There are some issues with WebParts and UpdatePanel in the March release. We are working to fix these for the next release.

-Mike


Fixed in the Atlas April CTP:http://weblogs.asp.net/atlas/archive/2006/04/10/442437.aspx

-Mike

atlas updatepanel and web parts

Hello All,

Has anyone gotten the atlas update panel working in a webpart? I have a panel that is within a web zone, that has an updatepanel. The panel houses a Gridview. I cannot seem to get the update panel to work properly. I'm trying to do a sort without doing a post back. If I take the exact same Grid out of the web zone, and place it somewhere else on the page, it works fine. Anyideas?

thanks

Hi,

I've tried to build an example similar to yours and the GridView sorts ok, everything seems to work in my case. Which problems are you experiencing?

Hi, this is a old post, hope you can still get the message.

I still can not find out what April CTP does for updatepanel in webpart. UpdatePanel need to be load befire page initcomplete, but at that stage, the webpart state has not been restored by WebPartManger, so how should they work together?

thansk


I found personalizationBlob is loaded before webpart pageinit, so it looks like the webpart state can be stored earlier so all controls in a webpart can be load in pageinit. It seems an easy solution.

Could anyone point out what is the real problem?


In the current version of Atlas, you cannot place an UpdatePanel inside a WebPart. The only supported combination of WebParts+UpdatePanel is that you place all WebParts controls inside a single UpdatePanel.

-Mike

I have tried the precise scenario of putting a web part zone inside an update panel. In this web part, I add dynamic web part controls (including user controls with GridViews on them). If I add a user control statically, everything seems to work, but once I try to use LoadControl() along with WebPartManager.CreateWebPart() and WebPartManager.AddWebPart(), I have problems with postbacks not happening as they should--especially during the sorting of a GridView.

This seems to be a common theme in discussions, but I have not found any good answers to date. Am I missing something? Or is this something to be addressed in a future release?


As far as we know, everything should work if *all* your WebParts controls are in a *single* UpdatePanel. The most common mistake is placing some WebParts controls (like the WebPartManager) ouside the UpdatePanel.

Second, please make sure your scenario works on plain ASP.NET 2.0 without Atlas.

If you are still seeing an error that only happens when UpdatePanel is involved, please post the smallest code needed to reproduce the issue. Thanks.

-Mike