9 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 21 May 2008, 07:34 AM
Hi Satheesh,
Try the following code snippet in the Export button click event.
CS:
Thanks
Shinu.
Try the following code snippet in the Export button click event.
CS:
| RadGrid1.ExportSettings.OpenInNewWindow = true; |
| RadGrid1.MasterTableView.ExportToExcel(); |
Thanks
Shinu.
0
Satheesh
Top achievements
Rank 1
answered on 23 May 2008, 11:05 AM
Hi Shinu,
I tried your suggestion but the controls in web page is still disabled. Even in excelsheet data is transfering but images is not copied.
Thanks,
Dileep
I tried your suggestion but the controls in web page is still disabled. Even in excelsheet data is transfering but images is not copied.
Thanks,
Dileep
0
Princy
Top achievements
Rank 2
answered on 23 May 2008, 11:45 AM
Hi Satheesh,
Try setting ExportOnlyData to false while exporting.
CS:
You can also refer the following help article.
Exporting tips and tricks
Princy.
Try setting ExportOnlyData to false while exporting.
CS:
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| RadGrid1.ExportSettings.ExportOnlyData = false; |
| RadGrid1.ExportSettings.OpenInNewWindow = true; |
| RadGrid1.MasterTableView.ExportToExcel(); |
| } |
You can also refer the following help article.
Exporting tips and tricks
Princy.
0
Satheesh
Top achievements
Rank 1
answered on 26 May 2008, 11:07 AM
Hi Princy,
I used these two lines in my code(click event).
But problem remains same. All page controls are disabled.
Thanks,
Dileep
I used these two lines in my code(click event).
| RadGrid1.ExportSettings.ExportOnlyData = false; |
| RadGrid1.ExportSettings.OpenInNewWindow = true; |
But problem remains same. All page controls are disabled.
Thanks,
Dileep
0
Shinu
Top achievements
Rank 2
answered on 27 May 2008, 10:37 AM
Hi,
Which version of the Grid are you using? Try Upgrading to the latest version of the Grid.
Updating RadControls for ASP.NET to another version or license
Shinu.
Which version of the Grid are you using? Try Upgrading to the latest version of the Grid.
Updating RadControls for ASP.NET to another version or license
Shinu.
0
Satheesh
Top achievements
Rank 1
answered on 27 May 2008, 11:47 AM
Hi,
We are using 5.1.3.0 version RAD GRID control.
Thanks,
Dileep
We are using 5.1.3.0 version RAD GRID control.
Thanks,
Dileep
0
Shinu
Top achievements
Rank 2
answered on 28 May 2008, 06:42 AM
Hi Dileep,
I am using RadGrid(5.1.1) and it is working as expected. Can you check whether you have written any code behind function that perform this behavior. Sending your codebehind will be more good.
Shinu.
I am using RadGrid(5.1.1) and it is working as expected. Can you check whether you have written any code behind function that perform this behavior. Sending your codebehind will be more good.
Shinu.
0
Satheesh
Top achievements
Rank 1
answered on 28 May 2008, 01:04 PM
Hi shinu,
This is my work..
in ContactListControl class
This is my work..
protected
void Exportto_click(object sender, EventArgs e)
{
ContactListControl.Export();
}
in ContactListControl class
public
void Export()
{
ContactListGrid.MasterTableView.Columns.FindByUniqueName(
"ContactImageColumn").Visible = false;
ContactListGrid.MasterTableView.Columns.FindByUniqueName(
"ExternalContact").Visible = false;
ContactListGrid.MasterTableView.Columns.FindByUniqueName(
"LastName").ShowSortIcon = false;
ContactListGrid.PagerStyle.Visible =
false;
ContactListGrid.ExportSettings.ExportOnlyData =
false;
ContactListGrid.ExportSettings.OpenInNewWindow =
true;
ContactListGrid.MasterTableView.ExportToExcel();
}
How can i remove sortIcon from header?
Even i use showsorticon to false, image is appearing...
Thanks,
Dileep
0
Shinu
Top achievements
Rank 2
answered on 29 May 2008, 06:54 AM
Hi Dileep,
Try making all the columns visible (which you initially made Visible=False while exporting ) after doing the Export function as shown below.
CS:
Thanks
Shinu.
Try making all the columns visible (which you initially made Visible=False while exporting ) after doing the Export function as shown below.
CS:
| public void Export() |
| { |
| ContactListGrid.MasterTableView.Columns.FindByUniqueName("ContactImageColumn").Visible = false; |
| ContactListGrid.MasterTableView.Columns.FindByUniqueName("ExternalContact").Visible = false; |
| ContactListGrid.MasterTableView.Columns.FindByUniqueName("LastName").ShowSortIcon = false; |
| ContactListGrid.PagerStyle.Visible =false; |
| ContactListGrid.Rebind(); |
| ContactListGrid.ExportSettings.ExportOnlyData =false; |
| ContactListGrid.ExportSettings.OpenInNewWindow =true; |
| ContactListGrid.MasterTableView.ExportToExcel(); |
| ContactListGrid.MasterTableView.Columns.FindByUniqueName("ContactImageColumn").Visible = True; |
| ContactListGrid.MasterTableView.Columns.FindByUniqueName("ExternalContact").Visible = True; |
| ContactListGrid.PagerStyle.Visible =True; |
| ContactListGrid.Rebind(); |
| } |
Thanks
Shinu.