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

[Solved] Text Wrap Issue

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vipul
Top achievements
Rank 1
Vipul asked on 26 Mar 2013, 02:26 PM
Hi,
I am using text wrap on the columns of the radgrid but when the text wraps, instead of moving complete words to the next line, it moves the words partially. Attached jpg file will show you the issue.
Any pointers on what am I missing here?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 26 Mar 2013, 07:18 PM
Hello,

I am not able to reproduce your issue.

Please check below code snippet.

<Columns>
                   <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name">
                   <ItemStyle Wrap="true" Width="500px" />
                   </telerik:GridBoundColumn>
                   <telerik:GridEditCommandColumn>
                   </telerik:GridEditCommandColumn>
               </Columns>
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            dynamic data = new[] {
              new { ID = 1, Name ="aaa"},
              new { ID = 2, Name = "bbb"},
              new { ID = 3, Name = "ccc"},
              new { ID = 4, Name = "ddd"},
              new { ID = 5, Name ="eee"},
              new { ID = 6, Name ="aaa"},
              new { ID = 7, Name = "bbb"},
              new { ID = 8, Name = "ccc"},
              new { ID = 9, Name = "ddd"},
              new { ID = 10, Name ="eee  AAAAAAAAAAA AAAAAAAAAAAAAA DDDDDDDDDDDDDDD DDDDDDDDDDDDDDDDDDDDDDD DDDDDDDDDD SSSSSSSSSSSSSS SSSSSSSSSSS   WWWWWWWWWWWW TTTTTTTTTTTT"}
            };
            RadGrid1.DataSource = data;
 
 
        }



Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Vipul
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or