This is a migrated thread and some comments may be shown as answers.

[Solved] Grid in tab doesnt print or export

1 Answer 59 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe Lozina
Top achievements
Rank 1
Joe Lozina asked on 11 Dec 2010, 01:03 AM
Hi,

I have two tabs and a different gridview in each. When I go to print or export the two grids only the grid in the first tab(default) gets printed.

When I click the print button I have tried to activate the second tab using the property IsSelected = true from the code behind or the viewmodel  but that doesnt work.

If I click on the second tab and then click the print button then both grids print.

The data for the second grid doesnt seem to be populated unless you click on that tab. Is there any way I can force the data to populated in the second grid once I click the print button?

Regards
Joe

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Dec 2010, 12:51 PM
Hi,

 Generally not only the grid data however the entire content of the second tab will be unavailable (not loaded) if the tab is not selected. If you want to select the second tab you can use SelectedIndex property. For example:

private void Button_Click(object sender, RoutedEventArgs e)
{
    RadTabControl1.SelectedIndex = 1;
}

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Joe Lozina
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or