Support both literal IDs and numeric IDs in the Grid filter