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

Change Splitter Width On runtime

2 Answers 88 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Hossein
Top achievements
Rank 1
Hossein asked on 16 Dec 2014, 05:24 AM
hi
I need to save splitter location on runtime when the user exits and app were closed.
Bun when i read the splitter width from registery(seved settings)  and set splitter by it, splitter width does not work and not change.

My Code is :

Dim p1 As Integer = GetSetting("splWidth1", 100)
Dim pnl As SplitPanel = SPL.SplitPanels(0) 
pnl.SetBounds(pnl.Left, pnl.Top, p1, pnl.Height)
SplitPanel1.Size =
New Point(p1, SplitPanel1.Height)
SplitPanel2.Width = GetSetting(
"splWidth2", 100)

      
It is correct But don't work.

2 Answers, 1 is accepted

Sort by
0
Hossein
Top achievements
Rank 1
answered on 17 Dec 2014, 08:04 AM
Solved in this topic:
http://www.telerik.com/forums/radsplitcontainer
0
Hristo
Telerik team
answered on 17 Dec 2014, 03:56 PM
Hi Hossein,

Thank you for writing.

I confirm that this is a valid solution for your scenario. I am glad that you found it on our forums.

Should you have further questions do not hesitate to write back.

Regards,
Hristo
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
SplitContainer
Asked by
Hossein
Top achievements
Rank 1
Answers by
Hossein
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or