Hi,
I have a radgrid with a template column which contains a XHTML table. I'm trying to display the border when it has been exported and it never shows. I've tried style attributes and border and they don't work.
Can any one help.
Thanks
I have a radgrid with a template column which contains a XHTML table. I'm trying to display the border when it has been exported and it never shows. I've tried style attributes and border and they don't work.
Can any one help.
Thanks
4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 24 Nov 2011, 01:19 PM
Hello Karl,
Try the following code.
C#:
-Shinu.
Try the following code.
C#:
protected
void
RadGrid1_ExcelExportCellFormatting(
object
sender, ExcelExportCellFormattingEventArgs e)
{
GridDataItem item = e.Cell.Parent
as
GridDataItem;
if
(e.FormattedColumn.UniqueName ==
"TemplateColumnUniqueName"
)
{
e.Cell.Style[
" border-color"
] =
"Red"
;
}
}
-Shinu.
0
Karl
Top achievements
Rank 1
answered on 24 Nov 2011, 02:03 PM
Hi,
Sorry, I need this in a PDF not excel.
Thanks
Sorry, I need this in a PDF not excel.
Thanks
0
Shinu
Top achievements
Rank 2
answered on 25 Nov 2011, 05:03 AM
Hello Karl,
When you are exporting HTML tables to pdf, the table should define <colgroup> and <col> elements. Check the following help documentation which explains more about this.
PDF export
-Shinu.
When you are exporting HTML tables to pdf, the table should define <colgroup> and <col> elements. Check the following help documentation which explains more about this.
PDF export
-Shinu.
0
Jo Bert
Top achievements
Rank 1
answered on 19 Dec 2011, 11:33 AM
Hi,
Just want to know if its possible to export multiple radgrid which loads data on page load into one pdf/word file? I saw a solution here in the forums. I tested it and it is working fine, but the problem is the radgrids doesn't have any formatting. Is it possible to have the 3 rad grid with borders in the pdf?
Thanks a lot.
Jo
Just want to know if its possible to export multiple radgrid which loads data on page load into one pdf/word file? I saw a solution here in the forums. I tested it and it is working fine, but the problem is the radgrids doesn't have any formatting. Is it possible to have the 3 rad grid with borders in the pdf?
Thanks a lot.
Jo