Thank you for contacting us.
You are getting this exception because you haven't referenced the Telerik.Windows.Documents.Spreadsheet DLL. You can take a look at ExportToXlsx
help article in our documentation which describes the required assemblies which you need to referenced and how you can export the grid to Xlsx format.
Hope this information is helpful.