We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to save and Restore pane sizes

Thread ID:





128541 Jan 27,2017 09:02 AM UTC Jan 31,2017 05:01 AM UTC ASP.NET Core 3
Tags: Splitter
George Rossopoulos
Asked On January 27, 2017 09:02 AM UTC


Is it possible to save and restore pane sizes?
Also is any way to use percent for pane sizes?

Thank you in advance for the help


Rekha J [Syncfusion]
Replied On January 30, 2017 06:39 AM UTC

Hi George,   
Thanks for contacting Syncfusion Support.   
Query 1: Is it possible to save and restore pane sizes?   
Yes.  You can save and restore pane sizes in splitter. To achieve your requirement, you have to use the “setModel” option. There are two buttons and bind click events to the button control. One is used to save the paneSize value and change the value. Another button is used to restore the initial value. You can get the model paneSize values using instance of the splitter control. Save the values to global variables. To change the paneSize values use the setModel and you will see the changes in the splitter. Again, you can restore the previous paneSize value to the model properties using “setModel” option.    
Query 2:  is any way to use percent for pane sizes?   
To achieve your requirement, you have to declare panesize value with “%” values.    
Please refer to the below code snippet to achieve this.   
<e-split-pane paneSize="50%">   
<e-split-pane paneSize="50%">   
For your reference, we have created a simple sample and the sample is available in:   

George Rossopoulos
Replied On January 30, 2017 07:41 AM UTC

Hi Rekha

thank you. Works!.
Added also a 'resize' event and job done!!


Rekha J [Syncfusion]
Replied On January 31, 2017 05:01 AM UTC

Hi George, 

Thanks for the update. 

We are glad the suggestion helped you to resolve the issue. 

Please let us know if you need further assistance. 
Rekha J.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon