Hide blank rows in Dojo data grid

梦想的初衷 提交于 2020-01-15 15:28:49

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!