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

Export & Paging

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lhalfon
Top achievements
Rank 1
lhalfon asked on 05 Aug 2008, 08:47 PM
I'm having problems with the export settings as they don't work properly (for instance, when the IgnorePaging property is set to True, it shows me only the first page)

I have this code:

private void ConfigureExport() 
    { 
        radGridradGrid.PageSize = radGrid.MasterTableView.VirtualItemCount; 
        radGrid.ExportSettings.ExportOnlyData = false
        radGrid.ExportSettings.IgnorePaging = true
        radGrid.ExportSettings.OpenInNewWindow = true
        radGrid.ExportSettings.FileName = "Report"
        //radGrid.Rebind(); 
    } 
 
    protected void ExportToExcel(object sender, System.EventArgs e) 
    { 
        if (radGrid.Items.Count > 0) 
        { 
            ConfigureExport(); 
            radGrid.MasterTableView.ExportToExcel(); 
        } 
    } 


I could use any help. Thanks.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 07 Aug 2008, 07:29 AM
Hi,

Can you please give us more details about the way your bind the RadGrid control? Note that you should use Advanced Databinding through the NeedDataSource event or bind the grid to a DataSource control in order for IgnorePaging option to work correctly. 

All the best,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
lhalfon
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or