ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Angular UI Grid Values with extra space in between not getting searched

Open vsinghvi09 opened this issue 10 years ago • 3 comments

when a attribute value has more then one space between the words, it is not getting searched in the inline search criteria of Angular UI grid.

Eg : UI Grid is showing "ankle jeans" which I am searching in the inline search but its not giving me results. This is because when i inspect the element I found the original string to be "ankle jeans" (2 spaces) in the UI grid as compared to the phrase shown. And If I search with "ankle jeans" with spaces then I am getting results.

The Angular UI grid is itself converting the extra spaces in between the data to single space which is wrong. The data should be shown as it is which has been inserted in the UI grid.

Please suggest

vsinghvi09 avatar Oct 18 '16 07:10 vsinghvi09

I am facing Same Problem Please provide me solution.

thanks

pawanupr16 avatar Mar 23 '17 12:03 pawanupr16

I have a two Solution of this Problem First you need to change the component code in ui-grid.css put .ui-grid-cell-contents { white-space: pre !important; //nowrap; } Second is you need to override this code in your css or your project default css put this code (put same code which you have in component file only change "white-space: pre !important;" ) .ui-grid-cell-contents { white-space: pre !important; //nowrap; } its working fine

pawanupr16 avatar Mar 23 '17 14:03 pawanupr16

close this issue

pawanupr16 avatar Mar 23 '17 14:03 pawanupr16