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

Export to PDF issue for Radgrid with RadTabStrip

2 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
naimish
Top achievements
Rank 1
naimish asked on 22 Sep 2010, 09:13 AM
Hi,

I am using radgrid with nested detail view.
whenever user click the row, it shows detail info for particular row in the form of RadListViews.
The RadListViews are inside RadTabStrip, now when i try to Eport to PDF, it throughs exception

Telerik.Web.Apoc.ApocException: internal-destination or external-destination must be specified in basic-link


When i removed the RadTabStrip from NestedViewTemplate, i am able to export to PDF, do we need special setting if i am using RadTabStrip.

Note: telerik Version=2010.1.309.35

The code is as follows:


<NestedViewTemplate>
                        <asp:Label ID="Label1" runat="server" Style="display: none;" Text='<%#Eval("ID") %>'></asp:Label>
                        <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">
                            <div class="contactWrap">
                                <telerik:RadTabStrip  EnableViewState="true" runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="1">
                                    <Tabs>
                                        <telerik:RadTab runat="server" Text="Employee Detail" PageViewID="PageView3">
                                        </telerik:RadTab>                                 
                                     </Tabs>
                                    
                                </telerik:RadTabStrip>
                                <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="1" RenderSelectedPageOnly=  "false">
                                   
                                      <telerik:RadPageView runat="server" ID="PageView3">
                                           <div class="contactWrap">
                                                <telerik:RadListView ID="RadListView2" runat="server" DataSourceID="ObjectDataSource1"
                                                         ItemPlaceholderID="EmptyDataHolder">
                                               </telerik:RadListView>
                                          </Div>
                                      </telerik:RadPageView>

                                </telerik:RadMultiPage>
                            </div>
                        </asp:Panel>
                </NestedViewTemplate>

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Sep 2010, 09:37 PM
Hello Naimish,

Please try to replace the empty anchors in the PdfExporting event handler. Sample code is shown below:
protected void RadGrid1_PdfExporting(object sender, GridPdfExportingArgs e)
{
    e.RawHTML = e.RawHTML.Replace("href=\"#\"""")
}

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
naimish
Top achievements
Rank 1
answered on 23 Sep 2010, 10:20 AM
Thanks,
It helped me..
Tags
Grid
Asked by
naimish
Top achievements
Rank 1
Answers by
Daniel
Telerik team
naimish
Top achievements
Rank 1
Share this question
or