I have some Web Parts,
each one has a WebAsyncRefreshPanel with a UltraWebGrid,
the ultrawebgrid has a column of type DropDown List;
the WebAsynckRefreshPanel has a button too.
All the Web Part has this design.
My problem is that there are WebParts that are related with other... for example:
Web Part A has a column with the information contained in the grid of the Web Part B.
The Web parts are added by the user to the page, and he could add one or two.
The only way to connect the Web Part is using a WebPartConnector that is a method that is called by the Web Part Consumer (WebPart A) when the Provider (Web Part A) has changes.
I need a way to update the WebAsyncRefreshPanel of the Web Part A when this method is called; the Web part B is updated when the user click the button inside the WebPart (B).
Ok till now
this are my progress:
I define the Web Part Connector with this methods
This in the Web Part Provider:
[ConnectionProvider("Enterprise Provider", "EnterpriseWebPartProvider")]public Infragistics.WebUI.Misc.WebAsyncRefreshPanel EnterpriseConnector(){ return updatePn ;}
And this in the Web Part Consumer:
[ConnectionConsumer("Enterprise consumer", "EnterpriseWebPartConsumer")] public void EnterpriseConnector(Infragistics.WebUI.Misc.WebAsyncRefreshPanel WARP) { if (!WARP.RefreshTargetIDs.Contains(updatePn.ClientID)) WARP.AddRefreshTarget(updatePn);}
this cause the consumer Web Part to make the asyncpostback but after that the provider Web Part become not editable.
Hello,
It's very hard for me to assist here, since I am not very well acquianted with the WebParts. Is this a Sharepoint WebPart or ASP.NET 2.x Portal WebPart? In both cases, you may try switching WebAsyncRefresh panel with asp:UpdatePanel and see if you get better results (WARP was implemented as an earlier version of UpdatePanel when it was not available and is now intended primarily for ASP.NET 1.x applications only).
You can also search for "webpart" on the forums here - maybe some useful threads for embedding UltraWebGrid in webparts can be found (like this forum thread which I believe might be useful
http://forums.infragistics.com/forums/p/14123/52257.aspx#52257