I'm getting an error when a user clicks on the export to excel button while the grid is edit or insert mode. Is there a quick way to address this or do i have to check for the grid's state and disable/enable the button?
2 Answers, 1 is accepted
0
Rumen
Telerik team
answered on 01 Sep 2016, 07:04 AM
Hello Christian,
Can you send the whole error along with the stack trace so that we can examine it? You can make a screenshot of the error and attach it.
Best regards,
Rumen
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
1- wire the ItemCommand, ItemInserted and ItemUpdated events in your grid:
OnItemCommand="RadGrid1_ItemCommand" OnItemInserted="RadGrid1_ItemInserted" OnItemUpdated="RadGrid1_ItemUpdated"
2- Handle the events to prevent excel exporting while the grid does not contain data: