South Africa dominated day one of the first Test match as they scored 298 for the loss of one wicket against Bangladesh at Senwes Park in Potchefstroom on Thursday.
The day two of the first Test match has already resumed.
Till filing of this report, the Proteas were 302 for 1 in 92.3 overs.
Opener Elgar was not out on 132 while Hashim Amla scored unbeaten 72 runs.
Bangladesh: 1 Tamim Iqbal, 2 Imrul Kayes, 3 Mominul Haque, 4 Mahmudullah, 5 Mushfiqur Rahim (capt), 6 Liton Das (wk), 7 Sabbir Rahman, 8 Mehidy Hasan, 9 Taskin Ahmed, 10 Shafiul Islam, 11 Mustafizur Rahman.
South Africa: 1 Dean Elgar, 2 Aiden Markram, 3 Hashim Amla, 4 Temba Bavuma, 5 Faf du Plessis (capt), 6 Quinton de Kock (wk), 7 Andile Phehlukwayo, 8 Keshav Maharaj, 9 Kagiso Rabada, 10 Morne Morkel, 11 Duanne Olivier.