Telerik Forums
UI for WinForms Forum
1 answer
39 views

I'm using a split container to display or hide a "comment history" list view element in a details view. One column contains created DateTime values and the other contains string values of comments a user of the application left.

I use the following cell formatting event code to enable text wrapping on my cells.

private void radListView1_CellFormatting(object sender, ListViewCellFormattingEventArgs e)
        {
                e.CellElement.TextWrap = true;
        }

When the form loads everything, the cells look correct. Fully expanded and no clipped text. When I collapse the panel with the splitter buttons and "hide" the list view element and reopen the panel using the splitter buttons then the text is clipped. See attached files for reference of how I want them to look.

I've tried using RadListView.Refresh() in a dozen different event calls, RadListView.ListViewElement.Update(UpdateLayout) in a dozen different event calls, a synchronizationContext.Post() of the Refresh method in a dozen different event calls, and even direct formatting of the UI hierarchy elements Text Wrap property to true to no avail.

I have the following properties set as indicated in various tutorials for the ListView control:

  • AllowArbitraryItemHeight & ...Width = True
  • AutoSizeColumnsMode = Fill
  • Dock = Fill
  • ViewType = DetailsView

I have the following properties set for the parent SplitPanel control:

  • Dock = Fill

For other relevant properties, I can confirm on a case by case basis since I'm not sure what I'm missing in my problem. Any guidance or advice is very appreciated.

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jun 2023
1 answer
231 views

Hello,

I have a form with a splitcontainer with 2 splitpanel:
- splitpanelFilter
- splitpanelMain

/* SplitContainerMain */
        /*  */
        THIS-OBJECT:SplitContainerMain:AutoScroll = TRUE.
        THIS-OBJECT:SplitContainerMain:Controls:Add(THIS-OBJECT:splitPanelFilter).
        THIS-OBJECT:SplitContainerMain:Controls:Add(THIS-OBJECT:splitPanelMain).
        THIS-OBJECT:SplitContainerMain:Dock = System.Windows.Forms.DockStyle:Fill.
        THIS-OBJECT:SplitContainerMain:Location = NEW System.Drawing.Point(0, 0).
        THIS-OBJECT:SplitContainerMain:Name = "SplitContainerMain".
        THIS-OBJECT:SplitContainerMain:Orientation = System.Windows.Forms.Orientation:Horizontal.
        /*  */
        /*  */
        /*  */
        THIS-OBJECT:SplitContainerMain:RootElement:MinSize = NEW System.Drawing.Size(25, 25).
        THIS-OBJECT:SplitContainerMain:Size = NEW System.Drawing.Size(644, 480).
        THIS-OBJECT:SplitContainerMain:SplitterWidth = 2.
        THIS-OBJECT:SplitContainerMain:TabIndex = 1.
        THIS-OBJECT:SplitContainerMain:TabStop = FALSE.
        THIS-OBJECT:SplitContainerMain:ThemeName = "Crystal".
        /*  */
        /* splitPanelFilter */
        /*  */
        THIS-OBJECT:splitPanelFilter:Controls:Add(THIS-OBJECT:BtnFilterDown).
        THIS-OBJECT:splitPanelFilter:Controls:Add(THIS-OBJECT:BtnFilterDefault).
        THIS-OBJECT:splitPanelFilter:Dock = System.Windows.Forms.DockStyle:Top.
        THIS-OBJECT:splitPanelFilter:Location = NEW System.Drawing.Point(0, 0).
        THIS-OBJECT:splitPanelFilter:Name = "splitPanelFilter".
        /*  */
        /*  */
        /*  */
        THIS-OBJECT:splitPanelFilter:RootElement:MinSize = NEW System.Drawing.Size(25, 25).
        THIS-OBJECT:splitPanelFilter:Size = NEW System.Drawing.Size(644, 28).
        THIS-OBJECT:splitPanelFilter:SizeInfo:AutoSizeScale = NEW System.Drawing.SizeF(Progress.Util.CastUtil:ToSingle(0), Progress.Util.CastUtil:ToSingle(-0.4393305)).
        THIS-OBJECT:splitPanelFilter:SizeInfo:SplitterCorrection = NEW System.Drawing.Size(0, -192).
        THIS-OBJECT:splitPanelFilter:TabIndex = 0.
        THIS-OBJECT:splitPanelFilter:TabStop = FALSE.
        THIS-OBJECT:splitPanelFilter:ThemeName = "Crystal".
/*  */
/* BtnFilterDefault */
        /*  */
        THIS-OBJECT:BtnFilterDefault:Image = CAST(resources:GetObject("BtnFilterDefault.Image"), System.Drawing.Image).
        THIS-OBJECT:BtnFilterDefault:Location = NEW System.Drawing.Point(3, 3).
        THIS-OBJECT:BtnFilterDefault:Name = "BtnFilterDefault".
        THIS-OBJECT:BtnFilterDefault:Size = NEW System.Drawing.Size(73, 22).
        THIS-OBJECT:BtnFilterDefault:TabIndex = 0.
        THIS-OBJECT:BtnFilterDefault:Text = "Filtres".
        THIS-OBJECT:BtnFilterDefault:TextAlignment = System.Drawing.ContentAlignment:MiddleRight.
        THIS-OBJECT:BtnFilterDefault:ThemeName = "Crystal".
        THIS-OBJECT:BtnFilterDefault:Click:Subscribe(THIS-OBJECT:BtnFilterDefault_Click).
        /*  */
        /* splitPanelMain */
        /*  */
        THIS-OBJECT:splitPanelMain:Location = NEW System.Drawing.Point(0, 31).
        THIS-OBJECT:splitPanelMain:Name = "splitPanelMain".
        /*  */
        /*  */
        /*  */
        THIS-OBJECT:splitPanelMain:RootElement:MinSize = NEW System.Drawing.Size(25, 25).
        THIS-OBJECT:splitPanelMain:Size = NEW System.Drawing.Size(644, 450).
        THIS-OBJECT:splitPanelMain:SizeInfo:AutoSizeScale = NEW System.Drawing.SizeF(Progress.Util.CastUtil:ToSingle(0), Progress.Util.CastUtil:ToSingle(0.4393305)).
        THIS-OBJECT:splitPanelMain:SizeInfo:SplitterCorrection = NEW System.Drawing.Size(0, 192).
        THIS-OBJECT:splitPanelMain:TabIndex = 1.
        THIS-OBJECT:splitPanelMain:TabStop = FALSE.
        THIS-OBJECT:splitPanelMain:ThemeName = "Crystal".


I want to dynamically manage the size of the Split Panels on the click of a button.
I have a variable iHeight= 30.
If I click I increase the height of the SplitPanelFilter by (28 + iHeigth) and I decrease the height of the SplitPanelMain (450 - iHeigth)
And conversely when I click again on the button ==> default position

I use this command
THIS-OBJECT:SplitPanelMain:Height= 450 - iTaille.
THIS-OBJECT:SplitPanelFilter:Height= 28 + iTaille.
but nothing ....
Are you a solution ??

Thank you

Laurent TROMBINO

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Sep 2022
2 answers
180 views

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

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 20 May 2022
1 answer
53 views

Guys please check an issue with Reports Filter area split bar. The problem is when you close the filter area with the split bar arrow button, then the dragable symbol stays over the expand button and it is impossible to open it again.

 

https://demos.telerik.com/reporting/dashboard

 

Dimitar
Telerik team
 answered on 21 Mar 2022
1 answer
189 views

Hello,

does RadSplitContainer have a property similar to "FixedPanel" on the native SplitContainer? If not, how would I achieve that?

Jure

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Nov 2021
1 answer
107 views

Hello  All,

I am trying to enable scroll bar for the radsplitcontainer and I am having hard time. I set autoscroll to true but the scroll bar doesn't show up. I am able to get the scroll bar for the individual split panels. Is there a way I can get the scroll bar for the whole panel instead of the individual splits. basically, I split it into three panels and trying to stretch my controls as the size grows but on higher resolutions I may need scrollbars and that's the reason I want the scrollbars enabled. I have attached my sample application. Can I get some help please.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Oct 2021
4 answers
141 views

Hi

I wanted to disable the border of a radSplitContainer. With the theme: office2013Light the following code is working:

 

            this.radSplitContainer1.RootElement.EnableElementShadow = false;
            this.radSplitContainer1.RootElement.MinSize = new System.Drawing.Size(25, 25);
            this.radSplitContainer1.Size = new System.Drawing.Size(428, 318);
            this.radSplitContainer1.SplitterWidth = 8;
            this.radSplitContainer1.TabIndex = 0;
            this.radSplitContainer1.TabStop = false;
            this.radSplitContainer1.ThemeName = "Office2013Light";

 

With the theme MaterialBlueGrey, there is still a border on the display.

Do you have any other ideas on how I can disable the border?

 

Thank you in advance.

 

Kind Regards

Dominik

 

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Sep 2020
1 answer
65 views

Hi guys, I've experienced a new weird behaviour. In this case the RadSplitContainer makes up his own color.

The UserControl I created still has the default BackColor "Control". Everything else is set to "Transparent". Why is the SplitContainer blue???

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Sep 2020
16 answers
703 views
How can I change SplitPanel collapse direction.
Using RadSplitContainer with 2 panels I need panel 2 collapsable to down, not up, hidding panel 1!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 May 2020
6 answers
802 views

Hello,

I have a Windows Form application with a Telerik splitter. I would like to put a limit on how much the splitter can be dragged up. I've been searching high and low for a solution to this problem and I can't find anything. The closest I've come is this site here: http://www.telerik.com/forums/programmatically-setting-size

It recommends setting the AbsoluteSize of one of the SplitPanels. So I set up a moving event handler and did this:

  private void radSplitContainerMain_SplitterMoving(object sender, SplitterCancelEventArgs e)
{
RadSplitContainer splitContainer = (RadSplitContainer)sender;

if (splitter.Location.Y < 420
&& splitter.Location.Y > 0)
{
splitContainer.SplitPanels["splitPanelMainChart"].SizeInfo.AbsoluteSize = new Size(
splitContainer.SplitPanels["splitPanelMainChart"].SizeInfo.AbsoluteSize.Width, 100);
}
}

This doesn't do anything though. I am still able to drag the splitter way below 420 and it doesn't seem to reposition it.

Can anyway help me out?

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Feb 2020
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?