Programmatically minimizing rather than collapsing split panels in RadSplitContainer

2 Answers 32 Views
SplitContainer
Patgat
Top achievements
Rank 1
Iron
Iron
Iron
Patgat asked on 12 May 2022, 09:23 AM

Dear all,

probably a very simple question

I am using a SplitContainer with four vertical panels. The default behavior is that the handles (little arrows) are always visible even when the panel is "minimized" with only one center little arrow shown as handle.. (see attached image).

If I use panel.collapsed = true, the panel is masked but the handle is not shown anymore and the user cannot act on it .

How can I do to programmatically mimic the standard interactive behavior and manipulate the three arrows ?

Many thanks

Patrick

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 May 2022, 01:01 PM

Hi, Patrick,

Collapsing the SplitPanels is not the recommended option. The appropriate API for handling this case is to use the RadSplitContainer's MoveSplitter and RestoreSplitterPosition methods. Thus, you may simulate programmatically the behavior when using the splitters. Additional information is available in the following help article:

https://docs.telerik.com/devtools/winforms/controls/splitcontainer/splitter-buttons 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Patgat
Top achievements
Rank 1
Iron
Iron
Iron
answered on 20 May 2022, 08:15 AM

Thanks Dess,

it works fine with these two API calls. Just one more question :

- starting from the splitpanelscollection in a SplitContainer, is there a simple way to get a reference to the "left and right" or "up and down" splitters around each panel ?

I didn't find any and only found necessary to set up a dedicated routine to simultaneously display any couple of panels within the collection.

Regards

Patrick

Dess | Tech Support Engineer, Principal
Telerik team
commented on 25 May 2022, 06:04 AM

Hello, Patrick,   

RadSplitContainer offers the SplitPanels collection where each panel can be accessed by its index. There is not dedicated API for getting its left/right or up/down splitters accordingly. The Splitters collection also gives access by index. Hence, the splitter at index 0 is expected to be placed between the SplitPanels at index 0 and 1 accordingly. 
Tags
SplitContainer
Asked by
Patgat
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Patgat
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or