-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using a url in cellTemplate in columnDef causes grid to malfunctions. #2053
Comments
Which version are you using? |
Reported on rc14, but similar issues happens on rc15. On rc15, the grid contents show, but the header is still only a few pixels in height. |
Here's a plunker demonstrating the problem: http://plnkr.co/edit/vXitx2XI5aLvG2YCRY4c?p=preview I think it may have something to do with leading/trailing whitespace in the cellTemplate when trying to |
OK, the leading and trailing whitespace is not a problem. It's purely the remote $http call that is causing the cell to be blank... |
Got it, I think. The problem is right here: https://github.com/angular-ui/ng-grid/blob/c19ffb101e86e02836dd3b9c760e9f769197e363/src/js/core/directives/ui-grid.js#L79 The Update: It appears to happen because when the initial empty data array comes in, it tries to build the columns off of it and creates a promise. But on the second go-around it skips that attempt and thus there's no promise, which probably resolves instantaneously with |
Still happening. If I do a ctrl-F5, the header columns get set to only a few pixels in height, whereas if I just navigate to the page, they work fine. Only happens when I include a column using cellTemplate. |
@joshmackey If you're having issues with the inline template, I've fixed this in the past by wrapping the whole template in a <script type="text/ng-template" id="blah2.html">
<div class="ui-grid-cell-contents">TEST: {{COL_FIELD CUSTOM_FILTERS}}</div>
</script> I also looked at your example and changed |
This was due to a different issue. #2110 caused it. When I removed the offending styles, it all worked. |
I am also facing this issue. |
If I include the html inline, it works fine, but as soon as its a remote file, the entire grid malfunctions having the headers be only a few pixels in height and the contents of the grid be invisible.
The text was updated successfully, but these errors were encountered: