This question is locked. New answers and comments are not allowed.
Hello,
Using telerik example on exporting data for a grid, I want the user to be able to choose "All Data" or only Page Data".
No errors show up but it doesn't fire. Code:
Please any thoughts?
regards,
Rick
Using telerik example on exporting data for a grid, I want the user to be able to choose "All Data" or only Page Data".
No errors show up but it doesn't fire. Code:
if (dialog.ShowDialog() == true) { using (Stream stream = dialog.OpenFile()) { int originalPageSize = radDataPager1.PageSize; int originalPageIndex = radDataPager1.PageIndex; RadioButton rb = (RadioButton)exppage.IsChecked; if (rb == true) { radDataPager1.Page = "0"; GridViewExportOptions export = new GridViewExportOptions(); export.Format = format; export.ShowColumnFooters = true; export.ShowColumnHeaders = true; export.ShowGroupFooters = true; RadGridView1.Export(stream, export); } else radDataPager1.PageSize = originalPageSize; radDataPager1.PageIndex = originalPageIndex; GridViewExportOptions exportOptions = new GridViewExportOptions(); exportOptions.Format = format; exportOptions.ShowColumnFooters = true; exportOptions.ShowColumnHeaders = true; exportOptions.ShowGroupFooters = true; RadGridView1.Export(stream, exportOptions); } } }regards,
Rick
