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

[Solved] Dynamic Hyperlink column - textwrapping is not work.

2 Answers 188 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nikolay
Top achievements
Rank 1
Nikolay asked on 20 Jul 2011, 09:20 AM
Hello!

In Q2 2011 version I'm has a issue with TextWrapping property of GridViewDynamicHyperlinkColumn - text in cell not wrap. In Q1 2010 all worked as expected.
There is my code:                              
<telerik:GridViewDynamicHyperlinkColumn Header="Title" DataMemberBinding="{Binding Title}" NavigateUrlMemberPaths="Href" NavigateUrlFormatString="{} {0}" Width="300" TextWrapping="Wrap" TargetName="_blank"></telerik:GridViewDynamicHyperlinkColumn>

What I do wrong? How can I do text wrapping for dynamic hyperlink column in Q2 2100?

Thank you!

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 21 Jul 2011, 12:59 PM
Hi Nikolay,

We have investigated the issue and it has been resolved. The fix will be available in one of our next internal builds. In the meantime, as a workaround you may use the following:

<telerik:GridViewDataColumn Header="Title"  >
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <HyperlinkButton>
                                <TextBlock Text="{Binding Title}" TextWrapping="Wrap" />
                            </HyperlinkButton>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>

Thank you for reporting the issue. 
 

Kind regards,
Maya
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Nikolay
Top achievements
Rank 1
answered on 21 Jul 2011, 01:19 PM
Thank you for your answer!
I'm already do this workaround. One annoying thing in it - at export to excel text in templated column don't show. Instead of it show something like "TemplateColum" (don't remember what exactly shown).
Tags
GridView
Asked by
Nikolay
Top achievements
Rank 1
Answers by
Maya
Telerik team
Nikolay
Top achievements
Rank 1
Share this question
or