in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

CallbackPanel - using dxrp:PanelContent vs dxp:PanelContent

Last post 9/7/2008 2:48 AM by Reza Mohamed. 2 replies.
Sort Posts: Previous Next
  • 9/6/2008 5:50 PM

    CallbackPanel - using dxrp:PanelContent vs dxp:PanelContent

    Im a new user to DX, and im still trying to get a grip with the controls.

    Is the CallbackPanel dx's equivalent of the ASP Ajax updatepanel? whats the basic difference between CallbackPanel and Callback?

    Also, what is the difference between: dxrp:PanelContent vs dxp:PanelContent

    In the following code, I cant seem to see a difference of using one vs. the other

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" ShowHeader

    ="False">

     

     

    <PanelCollection

    >

     

     

     

    <dxp:PanelContent runat

    ="server">

     

     

    <dxcp:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" Width

    ="200px">

     

     

    <PanelCollection

    >

     

     

    <dxp:PanelContent runat

    ="server">

     

     

    <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text

    ="ASPxLabel">

     

     

    </dxe:ASPxLabel

    >

     

     

     

    </dxp:PanelContent

    >

     

     

    </PanelCollection

    >

     

     

     

    </dxcp:ASPxCallbackPanel

    >

     

     

    </dxp:PanelContent>

     

     

    </PanelCollection

    >

     

     

    </dxrp:ASPxRoundPanel

    >

    Also,

    is the logic above correct, cause I was thinking in terms of ASP.NET Ajax, where the UpdatePanel would go outside of a Panel...but when I tried that for the case above, it was giving me all sorts of errors.

     

  • 9/7/2008 1:27 AM In reply to

    • Andrew
    • Top 500 Contributor
    • Joined on 7/3/2007
    • South Africa
    • Posts 66

    Re: CallbackPanel - using dxrp:PanelContent vs dxp:PanelContent

    Reza,

    I haven't used the callbackpanel extensively, but I'll try answer your questions. Yes, the ASPxCallbackpanel is approximately equivalent the the Asp.Net Ajax version. The difference between the Callback control and the callbackpanel is in what gets updated on the client form. With the callback control, you must manipulate your clientside controls/html yourself in the clientside callback complete event. With the callbackpanel, the controls within the callbackpanel are automatically updated when the callback completes.

    The dxrp:PanelContent is obviously for the content of a RoundPanel, while dxp:PanelContent is for the content of a callback panel.

    This markup works for me (roundpanel inside a callback panel)

    <dxcp:ASPxCallbackPanel ID="ASPxCallbackPanel2" runat="server" Width="200px">
        <PanelCollection>
          <dxp:PanelContent ID="PanelContent2" runat="server">
            <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" ShowHeader="False">
              <PanelCollection>
                <dxrp:PanelContent ID="PanelContent1" runat="server">
                  <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text="ASPxLabel">
                  </dxe:ASPxLabel>
                </dxrp:PanelContent>
              </PanelCollection>
            </dxrp:ASPxRoundPanel>
          </dxp:PanelContent>
        </PanelCollection>
      </dxcp:ASPxCallbackPanel>

    HTH

    Andrew

  • 9/7/2008 2:48 AM In reply to

    Re: CallbackPanel - using dxrp:PanelContent vs dxp:PanelContent

    Andrew:
            <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" ShowHeader="False">
              <PanelCollection>
                <dxrp:PanelContent ID="PanelContent1" runat="server">
     

     

    Andrew, where you have dxrp:PanelContent, I can put dxp:PanelContent and it still works...so whats the difference between one and the other was kinda where i was getting at. Should you use dxrp instead of dxp if you have a roundpanel there?

    When I use the CallBack in DevX I see a slight flicker when compared to say UpdatePanel of ASP.NET Ajax...so is the updatepanel a better choice?

    Also, how do I get the "Loading...." to come up on the CallBackPanel...in the autoformat, I have selected a Loading theme, but I dont seem to see it. I have even slept the process usign System.Threading.Thread.Sleep!!

    Thanks

     

Copyright © 1998-2010 Developer Express Inc.
ALL RIGHTS RESERVED