Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
WebAsyncRefreshPanel inside WebPart
posted

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

Parents
  • 845
    posted

     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.

Reply Children
No Data