3 Answers, 1 is accepted
Simply set the Items property of the GridViewExportOptions object to the collection you feed to the RadDataPager.
Sincerely yours,Yavor Georgiev
the Telerik team
Hi and thanks for your quickly answer...the source of my datapager is feed of a DomainDataSource
I have the next code...
the Grid view...
<telerik:RadGridView x:Name="grdDevices"
ItemsSource="{Binding PagedSource,ElementName=gridPager}"/>
the dataPager control...
<telerik:RadDataPager x:Name="gridPager"
Source="{Binding Path=Data,ElementName=devicesDDS}"/>
..and the domainDataSource
<riaControls:DomainDataSource Name="productDomainDataSource"
QueryName="GetProductsQuery"
<riaControls:DomainDataSource.DomainContext>
<my:DomainService2 />
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
In your case, your export call will look something like:
this
.grdDevices.Export(myStream,
new
GridViewExportOptions { Items =
this
.gridPager.Source
as
IEnumerable<MyDataObject });
Yavor Georgiev
the Telerik team