Grid to Excel fails for huge sets

I tried exporting my grid to excel. But it just seems to stop half way because there seems to be too many records, exactly 260 records. When i try for a smaller set, say 50, it works fine… Is it any issue with my web server? Do i have to increase connection time out or something like that?

Try to set bigger values for php options max_execution_time and memory_limit in php.ini file.