EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: acreonte82 on November 11, 2013, 09:09:54 AM



Title: Carriage Return in field of datagrid
Post by: acreonte82 on November 11, 2013, 09:09:54 AM
Hello to all,
is it possibile to force the carriage Return of a text in some columns of datagrid?

at the moment my definition is:

Code:
<th field="note" width="auto" >Note</th>

But if I've a long text this solution is not good...

Any suggestion?


Title: Re: Carriage Return in field of datagrid
Post by: acreonte82 on November 13, 2013, 07:02:39 AM
No idea???


Title: Re: Carriage Return in field of datagrid
Post by: stworthy on November 13, 2013, 05:23:08 PM
Try to set 'nowrap' property with false to display data in multiple lines.
Code:
$('#dg').datagrid({
  nowrap:false
});


Title: Re: Carriage Return in field of datagrid
Post by: acreonte82 on November 14, 2013, 03:36:39 AM
Ok work thanks!