Title: Datagrid Bug - multiple blank spaces in text are removed in columns [not a bug] Post by: Stefan B. on June 16, 2014, 01:23:51 AM In datagrid columns the json-text contains multiple blanks for e.g. "Stefan B" but it is shown as "Stefan B". This is wrong when we search using the filter or show original customer data.
You can see the bug on demo page: http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem= Test with column 'Attribute ' Title: Re: Datagrid Bug - multiple blank spaces in text are removed in columns Post by: stworthy on June 16, 2014, 05:50:35 AM Many browsers render only a space when encounter a series of spaces and tabs. A possible solution to solve this issue is to apply 'white-space:pre' style.
Code: <style> Title: Re: Datagrid Bug - multiple blank spaces in text are removed in columns Post by: Stefan B. on June 16, 2014, 06:14:47 AM OK THX. That's very tricky. So it was not a bug - sorry
Should this set to default in EasyUi datagrid style? Title: Re: Datagrid Bug - multiple blank spaces in text are removed in columns Post by: wade.zhu on June 16, 2014, 06:32:50 PM i agree with Stefan B.
in my project, i have to use lots of Code: formatter : function(value, row, index){ so, why not add a new property on datagrid column, something like Code: { Title: Re: Datagrid Bug - multiple blank spaces in text are removed in columns Post by: wade.zhu on June 16, 2014, 07:11:59 PM not only datagrid, also consider combobox, etc.
|