Nash, I have had similar issues with the blank rows as you describe. I think the blanks lines are rows that don't match the keys. Here are my tips for fixing this. The issue I think is not with your grid but your Rest service.
- Use a viewJsonService type of rest service
- Use a category filter instead of keys
Make your category filter code similar to mine below. This will ensure that you don't show documents to someone who shouldn't see them. When the category is null, the Rest service will show all documents. This isn't causing the blank lines, but is a best practice IMO.
var category:String = lineItemBean.getThisUNID(); //wherever your category comes from, maybe session.getUserName() in your case if(category == null){ return "show nothing" } else { return lineItemBean.getThisUNID(); }
I hope this helps. My guess is that this will fix your sorting issues as well.