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

Grid Export Status

3 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 02 Jun 2011, 06:51 PM
I want to update a field in my grid/database to indicate that a record or records have been exported. I am using a custom button to handle the export event rather than the button built into the grid. Is there any way to logically pass on information as to which records have been exported?

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Jun 2011, 07:14 PM
Hi,

there is not any such type of facility given by telerik.
but u can achieve this by another way.

.aspx
<MasterTableView DataKeyNames="ID">
.cs
foreach(GridDataItem item in RadGrid1.items)
{
      String ID = item.GetDataKeyValue("ID").ToString();
      // DB operation
}
RadGrid1.MasterTableView.ExportToword();

NOTE : u can stored all IDs value in Comma separated in any Variable and update all at a time in DB. 

Thanks,
Jayesh Goyani
0
Travis Williams
Top achievements
Rank 2
answered on 02 Jun 2011, 07:15 PM
Thanks for the reply. Would this also work when filters are applied in the grid?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Jun 2011, 07:17 PM
Hi,

yes. its worked with filter also.
If u have any issue with filter than let me know.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Brad
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Travis Williams
Top achievements
Rank 2
Share this question
or