Heteronuclear magnetisms with ultracold spinor bosonic gases in optical lattices