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

How to display dots at the end in GridBoundColumn when wrap = false ?

1 Answer 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bhanu
Top achievements
Rank 1
Bhanu asked on 12 Dec 2014, 06:47 AM
Hi,

We are using Telerik RadControls for ASP.NET Ajax version 2013.3.1114.45.
I have a GridBoundColumn in RadGrid and set the width and set the wrap to false.

var column = new GridBoundColumn();
column.HeaderStyle.Width =Unit.Percentage(23.0);
column.HeaderStyle.Wrap = true;
column.ItemStyle.Wrap = false;

In any row, if the column text cannot be fit into the column, how to display few dots at the end ?

Original Text : "With the help of the Telerik RadDock control for ASP.NET AJAX you can manage multiple windows and even the layout of your web page."

Currently displayed as (truncated): "With the help of the Telerik RadDock control for ASP.NET AJAX you ca"

Required display format : "With the help of the Telerik RadDock control for ASP.NET AJAX you c..."

How to achieve the "Required display format"  to display few dots at the end of the truncated text in the column cell ?


Thanks
Bhanu.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 16 Dec 2014, 02:09 PM
Hi Bhanu,

I am afraid that the feature which you are looking for is not support by RadGrid. Nevertheless a possible solution is to manually change the text in the cell if the number of character exceeded the cell width. For instance if the cell text is "With the help of the Telerik RadDock control for ASP.NET AJAX you can manage multiple windows and even the layout of your web page.", then you can replace the cell text by the following one "With the help of the Telerik RadDock control for ASP.NET AJAX you c.."
Please check out the following help article which elaborates more on accessing grid table rows and cells.

Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Bhanu
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or