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

RadGrid Export Twice

5 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 18 Feb 2011, 10:29 PM
Hi,

Our project is huge, so I wanted to avoid making an example if possible - and wondered if anyone had an idea about this:

The problem is that you can enable whatever columns you want. Hit export and it will export fine. If you then go back to the grid (without refreshing), and add or remove columns from the view, then export again - the export is the SAME as the original export. So no changes were made.

The export is triggered by a button firing the event and is handled by:

protected void ExportCSVButton_Click(object sender, EventArgs e)
{
    ConfigureExport();
    RadGrid1.MasterTableView.ExportToCSV();
}

Configure export just sets the standard settings like:
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.ExportSettings.FileName = GridID + "_Export_" + DateTime.Now.ToShortDateString();
RadGrid1.ExportSettings.OpenInNewWindow = true;
 
RadGrid1.AllowFilteringByColumn = false;
RadGrid1.MasterTableView.AllowFilteringByColumn = false;

Hopefully someone knows about this.

Cheers in advance.

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Feb 2011, 06:24 AM
Hello Michael,

I have the similar issue when I set EnableViewState="false" for RadGrid. Check whether you have set this property. Hope this information helps.

Thanks,
Princy.
0
Michael
Top achievements
Rank 1
answered on 21 Feb 2011, 07:25 PM
Hi Princy,

We don't have this set anywhere.
The view state is definitely enabled because we do a lot of updating the report via the RadAjaxManager which carries the view state over no problem.
0
Daniel
Telerik team
answered on 25 Feb 2011, 09:51 AM
Hello Michael,

Could you help me to reproduce the problem? I attached a runnable sample project that could be used as a starting point.
Thanks.
Daniel
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Michael
Top achievements
Rank 1
answered on 11 Mar 2011, 06:08 PM
Hi Daniel,

I tried to make it happen with the project you sent me, but I could not.

It must be a bug with something we have set up in our project (it's fairly big so it could be anything). If it becomes more of an issue I will try to reproduce it in the future. But for now we created a work around and it is not worth our time for the scale of the issue.

Thanks for working on this though.
0
Daniel
Telerik team
answered on 16 Mar 2011, 10:43 PM
Hello Michael,

Please feel free to send a support ticket if you find the root cause. I will be interested to see what causes this behavior.

Thanks.
Daniel
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or