Hi Priya,
Glad that the solution worked for you.
Displaying More than 50 documents will, i believe, not be a feasible Option. There is no Limit there. What if the number is 100 or 150 or may be much more than that. You cannot manage to Display all documents. Correct?
You probably can check an Option that if the document numbers are greater than a number e.g. 10, you can Display a text like "Many others" (just an example) at the end so that user can understand that there are other docuements as well.
Check this else go back to customer and tell them about the limitations and let them decide.
BR
Amitash