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.
Unfortunately, activation email could not send to your email. Please try again.

How to save and Restore pane sizes

Thread ID:

Created:

Updated:

Platform:

Replies:

128541 Jan 27,2017 04:02 AM Jan 31,2017 12:01 AM ASP.NET Core 3
loading
Tags: Splitter
George Rossopoulos
Asked On January 27, 2017 04:02 AM

Hi

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

George

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

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>   
<e-split-pane paneSize="50%">   
</e-split-pane>   
   
  
   
For your reference, we have created a simple sample and the sample is available in:   
  
Regards,   
Rekha  
 


George Rossopoulos
Replied On January 30, 2017 02:41 AM

Hi Rekha

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

George

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

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. 
 
Regards, 
Rekha J.


CONFIRMATION

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.

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.

;