问题
I have a Dojo data grid that displays data from a REST service of type viewItemFileService. I have chosen this type because I need to allow the user to update entries and save them to the backend.
The REST service pulls from a view that is categorized, the view is categorized by the unique ID of the related document. The 'keys' property is used to tell the REST service what values to pull. When I was using a viewJsonService this all worked fine. I had to change when I discovered that you couldn't save updates with that type.
The REST service appears to only return the correct view entry when 'pathInfo' to view in browser. What is different that the viewJsonService is an entry for @toplevelentries that lists the total docs in the view. The blank rows in the data grid correspond to that number.
Note: contentType of REST service set to "application/json"
I want to only show rows, where there is data, and no empty rows containing only "---". For screen shots showing the problem, please go here and scroll to the bottom: http://notesspeak.blogspot.com/2013/07/creating-updatable-rest-service-for-use.html
来源:https://stackoverflow.com/questions/17798495/hide-blank-rows-in-dojo-data-grid