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

Spreadsheet - Freezing Top Row

1 Answer 247 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 28 Jul 2016, 03:21 PM
Is there a way to via server-side or client side to freeze the top row of headers?

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 02 Aug 2016, 08:26 AM
Hello Brandon,

The SpreadsheetSheet object exposes the set_frozenRows() client-side method, which accepts int and will freeze the number of rows specified starting from row 1. For example if you want to freeze the first row you can pass 1 to the method (as shown in the code snippet below), if you want the Sheet's first three rows frozen you pass 3:
function pageLoad() {
    var spreadsheet = $find("<%=RadSpreadsheet1.ClientID%>");
    var activeSheet = spreadsheet.get_activeSheet();
    activeSheet.set_frozenRows(1);
}

You can find the set_frozenRows() an other important SpreadsheetSheet object methods in the following documentation article.

Regards,
Ivan Danchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Spreadsheet
Asked by
Brandon
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or