Forums

CallbackPanel - using dxrp:PanelContent vs dxp:PanelContent

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

    CallbackPanel - using dxrp:PanelContent vs dxp:PanelContent

    9/6/2008 5:50 PM
    • Top 500 Contributor
    • Joined on 8/27/2008
    • Dallas, TX
    • Posts 70

    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.

     

  • Andrew

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

    9/7/2008 1:27 AM
    • Top 500 Contributor
    • Joined on 7/3/2007
    • South Africa
    • Posts 68

    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

  • Reza Mohamed

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

    9/7/2008 2:48 AM
    • Top 500 Contributor
    • Joined on 8/27/2008
    • Dallas, TX
    • Posts 70

    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

     

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.