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

2 posts, 0 answers
  1. G.K. Raju
    G.K. Raju avatar
    8 posts
    Member since:
    Oct 2009

    Posted 06 Jun Link to this post

    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

  2. Deyan
    Admin
    Deyan avatar
    157 posts

    Posted 08 Jun Link to this post

    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.
Back to Top