Bug Report T302506
Visible to All Users

ASPxGridView is empty on being placed inside a collapsed ASPxRoundPanel with LoadContentViaCallback="true"

created 9 years ago (modified 9 years ago)

Hello,

I am having an issue with an ASPxGridView that is located inside an ASPxRoundPanel that has LoadContentViaCallback set to true and collapsed set to true.

After initial Page Load, I expand the ASPxRoundPanel to show the grid, but it always says "No data to display" when there is data. The data only appears after I try to sort a column for example (perform a callback I assume). I even tried to bind the grid on page load, but this changes nothing. Perhaps this is a desired affect, but I'm not sure.

Here is my html markup of the panel and gridview:

ASPx
<dx:ASPxRoundPanel ID="panelInitialStageOccurence" ClientInstanceName="panelInitialStageOccurence" runat="server" Width="99%" LoadContentViaCallback="true" AllowCollapsingByHeaderClick="true" ShowCollapseButton="true" HeaderText="Test" Collapsed="true"> <PanelCollection> <dx:PanelContent> <dx:ASPxGridView ID="gridInitialStageOccurrence" ClientInstanceName="gridInitialStageOccurrence" runat="server" AutoGenerateColumns="False" DataSourceID="dataInitialStageOccurrence" Width="100%" KeyFieldName="THISID" EnableCallbackCompression="False" EnableCallBacks="false" > <Paddings Padding="0px" /> <Border BorderWidth="0px" /> <BorderBottom BorderWidth="1px" /> <Columns> <dx:GridViewDataDateColumn VisibleIndex="1" FieldName="STARTDATE" Caption="Start Date" Settings-GroupInterval="Value" > <PropertiesDateEdit DisplayFormatString="yyyy-MM-dd"></PropertiesDateEdit> <Settings GroupInterval="Value" /> </dx:GridViewDataDateColumn> <dx:GridViewDataDateColumn VisibleIndex="2" FieldName="ENDDATE" Caption="End Date" Settings-GroupInterval="Value" > <PropertiesDateEdit DisplayFormatString="yyyy-MM-dd"></PropertiesDateEdit> <Settings GroupInterval="Value" /> </dx:GridViewDataDateColumn> </Columns> <SettingsPager Mode="ShowPager" PageSize="10" /> </dx:ASPxGridView> </dx:PanelContent> </PanelCollection> </dx:ASPxRoundPanel>

Any insight you can provide will be greatly appreciated.

Thanks in advance!

Comments (1)
Nastya (DevExpress Support) 9 years ago

    Hello Eric,
    I've managed to reproduce the issue and forwarded this ticket to our developers for further research. We will contact you as soon as we have any results.
    As a workaround, now you can turn off the ViewState of ASPxGridView by setting EnableViewState to "false".

    Answers approved by DevExpress Support

    created 9 years ago (modified 9 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.