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

Rad Grid Export Ignore paging

1 Answer 405 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Champu123
Top achievements
Rank 1
Champu123 asked on 14 Jan 2011, 06:34 AM
Hi all.

I am having problem in rad grid export.When i export the radgrid with ignore paging to word ,excel or pdf alll record gets exported this is finr.But now when i change the page or move to other page than 1 and export grid with ignor paging it give me file with no record to display.

my button code is as follows

   protected void uxBtnWord_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                if (uxRadGrid.Items.Count == 0) return;
                if (uxIgnorePaging.Checked)
                  // uxRadGrid.PageSize = uxRadGrid.MasterTableView.VirtualItemCount;
                uxRadGrid.ExportSettings.IgnorePaging = uxIgnorePaging.Checked;
               
                uxRadGrid.ExportSettings.OpenInNewWindow = true;
                uxRadGrid.ExportSettings.ExportOnlyData = true;
                isExport = true;
            
                uxRadGrid.MasterTableView.ExportToWord();
            
                
            }
            catch (Exception ex)
            {
             
            }
        }

please help it out

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Jan 2011, 07:31 AM
Hello Champu123,

I suppose this is a databinding-related issue however it is hard to determine the root cause based on the provided information. At this point I could recommend that you bind your RadGrid using the advanced data-binding approach.
If the problem still persists please post your code in this thread so that I can provide more to-the-point answer.

Regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Champu123
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or