I am using an radSpreadsheet with multiple worksheets. I have no problem when it comes to freezing rows and columns using FreezePanes on the first worksheet. However, I am unable to freeze cells for the second worksheet.
Is it possible to freeze cells simultaniously on multiple worksheets of a given radSpreadsheet and, if so, could you give me an example of how this could be achieved?
4 Answers, 1 is accepted
One way to achieve this is to freeze the active worksheet, the way you are doing it right now, using the RadWorksheetEditor.FreezePanes() method, then to iterate through all worksheets in the workbook and modify their ViewState using the following code:
Currently, there is an issue related to notifying the UI of changes in the ViewState of the worksheet, that is why the active worksheet has to be frozen using a different approach.
Another workaround is to get the Workbook of the RadSpreadsheet, and replace it with new Workbook, then freeze all worksheets of the original workbook, and return it to the RadSpreadsheet.
Another workaround is to freeze all worksheets, and just change the active worksheet to another one, and then to the one, which was active before.
I have logged a public item in our Feedback portal, you can upvote and follow it, this way you would be able to track the process on the matter.
I tried using the bit of code you linked and it works.
Thank you very much for your help.
May i know what library or reference do i need to add in order to user RadWorkshhetEditor?
Could you send me the dll please?
The RadWorksheetEditor class is part of our RadSpreadProcessing library. This library is included in Telerik Document Processing and distributed as a part of several suites. More information on the matter is available here.
RadSpreadProcessing is used by RadSpreadsheet as its model. This component and the assemblies you should refer from your project to use it are described in our documentation.
All the assemblies you are eligible to download according to your license, are available your account. To access them, you should log in at telerik.com, go to the Downloads section and choose a suite.
Hope this helps.
Telerik by Progress