We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridHyperlinkColumn wrap text

Thread ID:

Created:

Updated:

Platform:

Replies:

119004 May 3,2015 09:59 PM UTC May 5,2015 06:45 AM UTC WinRT 3
loading
Tags: SfDataGrid
Vasanth
Asked On May 3, 2015 09:59 PM UTC

Hi,
How can I make "GridHyperlinkColumn" column to wrap text?

Farjana Parveen Ayubb [Syncfusion]
Replied On May 4, 2015 12:48 PM UTC

Hi Vasanth,

Thank you for contacting Syncfusion support.

We analyzed your query. Currently, we don’t have a direct support for TextWrapping in GridHyperlinkColumn in SfDataGrid. But we have prepare the workaround based on your requirement by overriding the GridCellHyperlinkRenderer in SfDataGrid.

Please refer the following code snippet and sample in the following location:

Code Snippet:

public class GridHyperlinkColumnExt : GridCellHyperlinkRenderer

{

public GridHyperlinkColumnExt()

{


}


public override void OnInitializeEditElement(Syncfusion.UI.Xaml.ScrollAxis.RowColumnIndex rowColumnIndex, HyperlinkButton uiElement, GridColumn column, object dataContext)

{

base.OnInitializeEditElement(rowColumnIndex, uiElement, column, dataContext);

TextBlock textblock = uiElement.Content as TextBlock;

textblock.TextWrapping = Windows.UI.Xaml.TextWrapping.Wrap;

}

}

Sample Location: SfDataGridWithHyperLinkColumn.zip

Regards,

Farjana Parveen A



Vasanth
Replied On May 4, 2015 02:16 PM UTC

Perfect, thanks!

Saranya CJ [Syncfusion]
Replied On May 5, 2015 06:45 AM UTC

Hi Vasanth,

Thank you for your update. Please let us know if you require further assistance on this.

Regards,
Saranya

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;