The Afghans rode on an unbeaten 107 from Ikram Ali to post a competitive 248 for seven after being asked to bat.