This is a migrated thread and some comments may be shown as answers.

Export Radgrid to text file.

3 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vinoth sansar
Top achievements
Rank 2
vinoth sansar asked on 01 Dec 2011, 03:36 PM
hi all

  Anu one help how to Exportgrid to text file without using "response.write".
Because when export datatable to text file, the full page is also write into that text file.

thanks,
vinoth

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Dec 2011, 05:44 AM
Hello Vinoth,

RadGrid provide exporting to Word functionality. Check the following demo which implements the same.
Grid / MS Excel/MS Word/CSV

-Shinu.
0
vinoth sansar
Top achievements
Rank 2
answered on 02 Dec 2011, 11:23 AM
HI,
  
I know that  we can export radgrid to word. But i want to export into text file. pls sort out my problem

vinoth
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Dec 2011, 12:00 PM
Hello vinoth sansar,

This type of facility is not given by (Telerik)Radgrid or (asp)GridView.
So you have to do this thing maually.

Step 1:
store all rows value in stringbulider.Then write this stringbulider's value in text file.

Step 2:
Create a File
http://msdn.microsoft.com/en-us/library/as2f1fez.aspx
Step 3:
Write to a Text File
http://msdn.microsoft.com/en-us/library/8bh11f1k.aspx

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
vinoth sansar
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
vinoth sansar
Top achievements
Rank 2
Jayesh Goyani
Top achievements
Rank 2
Share this question
or