problem with loading data about 5000 record to grid

now i modify grid to have paging , show xx row.I have problem when i select Show all row with data about 5000 record ,it will loading so very long time.What is my mistake?Can anyone suggest?

Unfortunately your question is not clear. Can you provide complete demo of the issue, exact steps to reproduce and expected and actual result?