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

Freeze Pane is not working as expected when we try to change freeze position programmatically

1 Answer 76 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
G.K. Raju
Top achievements
Rank 1
Iron
G.K. Raju asked on 06 Jun 2017, 05:55 AM

Freeze Pane is not working as expected when we try to change freeze position programmatically.

When i try to change freeze position on a Button click the change in the UI for freeze is not happening.

 

Is anything i am doing wrong.?

Thanks

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 08 Jun 2017, 12:38 PM
Hello,

The code you have sent is used in SpreadProcessing Freeze Panes scenarios. However, when you are using RadSpreadsheet control and need to ensure correct UI updates you may take a look at these UI Freeze Panes documentation article. In the concrete case, you may change the freeze panes cell with ButtonClick handler by using code similar to the one shown below:
private void Button_Click(object sender, RoutedEventArgs e)
{
    RadWorksheetEditor worksheetEditor = this.radSpreadsheet.ActiveWorksheetEditor;
    worksheetEditor.UnfreezePanes();
    worksheetEditor.FreezePanes(new CellIndex(2, 2));
}

I hope this helps.

Regards,
Deyan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Spreadsheet
Asked by
G.K. Raju
Top achievements
Rank 1
Iron
Answers by
Deyan
Telerik team
Share this question
or