Unplanned
Last Updated: 04 Mar 2020 09:17 by ADMIN
Dimitar
Created on: 04 Mar 2020 09:17
Category: Spreadsheet
Type: Bug Report
1
Spreadsheet: The current worksheet is not updated if the workbook is set while the control is disabled

The current worksheet is not updated if the workbook is set while the control is disabled.

Workaround: 

private void RadButton_Click( object sender, RoutedEventArgs e )
{
    radSpreadsheet.IsEnabled = false;
  
    Workbook spreadsheetWorkbook =
        new XlsxFormatProvider( ).Import( File.ReadAllBytes( @"..\..\Book2.xlsx" ) );
  
    radSpreadsheet.Workbook = new Workbook( );
  
    Dispatcher.InvokeAsync( ( ) => radSpreadsheet.Workbook = spreadsheetWorkbook );
  
    radSpreadsheet.IsEnabled = true;
}

0 comments