Hi Sir,
i am binding my RadGrid with ORM like this
oadsSource.ObjectContextProvider = "RadControlApplication.EntitiesModel, RadControlApplication";
oadsSource.TypeName = "RadControlApplication.TblCustomer";
oadsSource.EnableDelete = false;
oadsSource.EnableUpdate = false;
oadsSource.EnableInsert = false;
oadsSource.StoreOriginalValuesInViewState = false;
rdGridCustomer.DataSourceID = "oadsSource";
here oadsSource is the object of my OpenAccessDataSource control, that i put in my aspx page.
and RadGrid is bound properly.
i am setting the properties of my radGrid for Excel Exporting as
rdGridCustomer.ExportSettings.FileName = "MyDataFile";
rdGridCustomer.ExportSettings.ExportOnlyData = true;
rdGridCustomer.ExportSettings.IgnorePaging = false;
rdGridCustomer.ExportSettings.OpenInNewWindow = true;
rdGridCustomer.ExportSettings.Excel.FileExtension = "xls";
rdGridCustomer.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
now on button click event i am writing this code
this.rdGridCustomer.MasterTableView.ExportToExcel();
but i am facing the error
Key cannot be null. Parameter name: key
But if i bind my RadGrid with other data source like SQLDATASOURCE then its work fine.no error occurs.
and if i use other datasource like datatable then also its work fine for export in ExcelML format.
But i have to use ORM actuly.
I need solution please.
Thanks very much
i am binding my RadGrid with ORM like this
oadsSource.ObjectContextProvider = "RadControlApplication.EntitiesModel, RadControlApplication";
oadsSource.TypeName = "RadControlApplication.TblCustomer";
oadsSource.EnableDelete = false;
oadsSource.EnableUpdate = false;
oadsSource.EnableInsert = false;
oadsSource.StoreOriginalValuesInViewState = false;
rdGridCustomer.DataSourceID = "oadsSource";
here oadsSource is the object of my OpenAccessDataSource control, that i put in my aspx page.
and RadGrid is bound properly.
i am setting the properties of my radGrid for Excel Exporting as
rdGridCustomer.ExportSettings.FileName = "MyDataFile";
rdGridCustomer.ExportSettings.ExportOnlyData = true;
rdGridCustomer.ExportSettings.IgnorePaging = false;
rdGridCustomer.ExportSettings.OpenInNewWindow = true;
rdGridCustomer.ExportSettings.Excel.FileExtension = "xls";
rdGridCustomer.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
now on button click event i am writing this code
this.rdGridCustomer.MasterTableView.ExportToExcel();
but i am facing the error
Key cannot be null. Parameter name: key
But if i bind my RadGrid with other data source like SQLDATASOURCE then its work fine.no error occurs.
and if i use other datasource like datatable then also its work fine for export in ExcelML format.
But i have to use ORM actuly.
I need solution please.
Thanks very much