Export multiple RadTabItems to excel

Veda

Hi,
I'm implementing export for RadGridViews placed in RadTabItems of RadTabControl. I have a single export button for all the RadTabItems.

The issue is, If the first tab is focused and click on export button i can only get the items of RadGridView of that RadTabItem and items of RadGridView of other RadTabItem are zero.

I can get the items of RadGridView provided I'm focused on that particular RadTabItem.

Please help me in this. I should be able to get all the items of RadGridView irrespective of what RadTabItem is focused in RadTabControl.
I tried with IsEnabled and Isselected properties of RadTabItem but didn't help.

Regards,
Veda

Petar Mladenov

You can use the IsContentPreserved property of the RadTabControl set to true but first you have to ensure that all RadGridViews are loaded. This will be guaranteed if you have selected all of the RadTabItems whose content contains RadGridViews. Let us know if you need more info on this.

Kind regards,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.