Support filter in head in nggrid and fix several issues

Support filter in head in nggrid and fix several issues