How to tell that I don't want to export child tables

2 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 28 Feb 2008 Link to this post


    Using recent version xxx.1425,35 I found that things have been corrected concerning export, but I am still unable to avoid exporting of child tables when i export to excel.
    Here is part of my server code when the export button is clicked
                    foreach (GridDataItem item in RadGrid1.Items)
                        if (item.HasChildItems && CBNoExportProductLines.Checked)
                            GridNestedViewItem nestedViewItem = item.ChildItem;
                            foreach (GridDataItem childItem in nestedViewItem.NestedTableViews[0].Items)
                                childItem.Display = false;

    but it has no effect because a new automatic rebind for the detail grid is triggered just after this and all items get display=true.
    Is there any global way to say that I don't need to export these details ?

    Thanks for help.
  2. Steve
    Steve avatar
    10941 posts

    Posted 04 Mar 2008 Link to this post

    Hi Christian,

    Have you tried setting RadGrid1.MasterTableView.HierarchyDefaultExpanded = false; instead and does that work for you?

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top