Hi
I want to remove the shadow of the ribbontabs if they are drop-downed. Is there a possibility?
I tried the following:
this.radRibbonBar1.RootElement.EnableBorderHighlight = false;
this.radRibbonBar1.RootElement.EnableElementShadow = false;
this.radRibbonBar1.RootElement.EnableFocusBorder = false;
this.radRibbonBar1.RootElement.EnableFocusBorderAnimation = false;
this.radRibbonBar1.RootElement.EnableHighlight = false;
this.radRibbonBar1.RootElement.EnableRippleAnimation = false;
Thank you in Advance
Kind Regards,
Dominik
Hi
I adapted the height of a radRibbonBar with (radRibbonBarExpand):
this.radRibbonBar1.RootElement.MaxSize = new System.Drawing.Size(0, 120);
this.radRibbonBar1.RootElement.MinSize = new System.Drawing.Size(0, 120);
And wanted to change the height of the drop-downed tab the same size and tried (radRibbonBarDropDown):
this.ribbonTab1.MinSize = new System.Drawing.Size(0, 20);
this.ribbonTab2.MaxSize = new System.Drawing.Size(0, 50);
but the height stays the same. How is it possible to change this height?
Thank you in Advance
Kind Regards,
Dominik
Hello,
actually I am testing the RadGridView.
I made a Grid with three columns. One of them as multiline textbox.
So, my problem is to set the row height dynamically with the number of the lines of the multiline cell.
The user should see all the lines of the multiline cell if the cell will be in edit mode.
I have read all the threads about that, but I don‘t find a solution.
Any help from you.
thank you and best regards


Hi.
On a form, I am programmaticaly creating radButtons in tow different tabPages. The UI is rendered correctly in the first tab (see "Tab1.png") but not in the second ("Tab2.png"). They are generated the same way:
// For tab 1RadButton b = new RadButton();b.EnableTheming = true;b.ThemeName = new DesertTheme().ThemeName;b.Name = n;b.Text = n;b.Left = 10;b.Top = (22 * i++);b.MinimumSize = new Size(ptp1.Width - 40, 20);b.MaximumSize = new Size(ptp1.Width - 40, 0);b.AutoSize = true;b.Padding = new Padding(4);((TextPrimitive)b.ButtonElement.Children[1].Children[1]).TextWrap = true;b.RootElement.StretchVertically = false;b.TextAlignment = ContentAlignment.MiddleCenter;b.Click += new EventHandler(onBtnRechercheClick);tt.SetToolTip(b, b.Name);ptp1.WindowsControl.Controls.Add(b);
// For tab 2
RadButton b2 = new RadButton();
b2.EnableTheming = true;
b2.ThemeName = new DesertTheme().ThemeName;
b2.Name = n2;
b2.Text = n2;
b2.Left = 10;
b2.Top = (22 * i2++);
b2.MinimumSize = new Size(ptp2.Width - 40, 20);
b2.MaximumSize = new Size(ptp2.Width - 40, 0);
b2.AutoSize = true;
b2.Padding = new Padding(4);
((TextPrimitive)b2.ButtonElement.Children[1].Children[1]).TextWrap = true;
b2.RootElement.StretchVertically = false;
b2.TextAlignment = ContentAlignment.MiddleCenter;
b2.Click += onBtnRechercheClick;
tt.SetToolTip(b2, b2.Name);
ptp2.WindowsControl.Controls.Add(b2);


Greetings.
Using the code below, it is possible to set vertical group layout :
RadPanorama1.PanoramaElement.GroupLayout.Orientation = Orientation.Vertical
BUT,
what would be the usage as it disables the scroll ball. I found relevant threads, but It would be helpful for VB.NET developers if you just not provide solutions in C#, but also in VB.NET (I already know C# can be converted to VB.NET, but it isn't comfortable in many cases).
For instance, I edited the relevant thread to create custom Panoroma :
Imports Telerik.WinControlsImports Telerik.WinControls.LayoutsImports Telerik.WinControls.UIClass CustomPanorama Inherits RadPanorama Private vScroll As RadScrollBarElement Protected Overrides Sub CreateChildItems(ByVal parent As Telerik.WinControls.RadElement) MyBase.CreateChildItems(parent) Me.vScroll = New RadScrollBarElement() Me.vScroll.ScrollType = ScrollType.Vertical Me.vScroll.StretchHorizontally = False Me.vScroll.StretchVertically = True Me.vScroll.MinSize = New System.Drawing.Size(16, 0) Me.vScroll.Alignment = System.Drawing.ContentAlignment.TopRight Me.PanoramaElement.Children.Add(vScroll) AddHandler vScroll.ValueChanged, AddressOf vScroll_ValueChanged AddHandler PanoramaElement.GroupLayout.RadPropertyChanged, AddressOf GroupLayout_RadPropertyChanged AddHandler PanoramaElement.TileLayout.RadPropertyChanged, AddressOf GroupLayout_RadPropertyChanged Me.ScrollBarAlignment = HorizontalScrollAlignment.Bottom End Sub Private Sub GroupLayout_RadPropertyChanged(ByVal sender As Object, ByVal e As Telerik.WinControls.RadPropertyChangedEventArgs) If e.Equals(RadElement.BoundsProperty) AndAlso sender = Me.GetCurrentLayout() Then UpdateVScroll() End If End Sub Protected Overrides Sub OnSizeChanged(ByVal e As EventArgs) MyBase.OnSizeChanged(e) UpdateVScroll() End Sub Private Sub UpdateVScroll() vScroll.Maximum = Me.GetCurrentLayout().Size.Height vScroll.LargeChange = Math.Max(0, CInt((Me.Size.Height - Me.PanoramaElement.ScrollBar.Size.Height))) If vScroll.LargeChange >= vScroll.Maximum Then vScroll.Visibility = ElementVisibility.Hidden Else vScroll.Visibility = ElementVisibility.Visible End If If Me.PanoramaElement.ScrollBar.Visibility = ElementVisibility.Visible Then vScroll.Margin = New System.Windows.Forms.Padding(0, 0, 0, Me.PanoramaElement.ScrollBar.Size.Height) Else vScroll.Margin = New System.Windows.Forms.Padding(0) End If End Sub Private Sub vScroll_ValueChanged(ByVal sender As Object, ByVal e As EventArgs) Me.GetCurrentLayout().PositionOffset = New System.Drawing.SizeF(0, -Me.vScroll.Value) End Sub Private Function GetCurrentLayout() As LayoutPanel If Me.ShowGroups Then Return Me.PanoramaElement.GroupLayout End If Return Me.PanoramaElement.TileLayout End Function Public Overrides Property ThemeClassName As String Get Return GetType(RadPanorama).FullName End Get Set(ByVal value As String) MyBase.ThemeClassName = value End Set End PropertyEnd Class
But, in this way, we have to create all elements such as tiles programmatically, really difficult and annoying in comparison with visual creation.
How to enable vertical scrollbar for vertical Group Layout ?
Thanks in advance.

Hi
Is there a way to disable the highlighting of the last selected button?
With:
private void button_changebackcolor(object sender, System.EventArgs e)
{
if(((Telerik.WinControls.UI.RadButton)sender).BackColor != System.Drawing.Color.White)
{
((Telerik.WinControls.UI.RadButton)sender).BackColor = System.Drawing.Color.White;
}
}
it's possible, but that makes problem with my real program, because sometimes I need to highlight a button with yellow and button_changebackcolor overrrides that.
Thank you in Advance
Kind Regards,
Dominik
Hi
How is it possible to change the backcolor of a ribbonTab if it's drop-downed.
I tried to change the following colors:
Hello,
Is there a simple way to open the DeleteRecurringAppointmentDialog? Just like adding an appointment with AddNewAppointmentWithDialog?
Best regards
Patrick Vossen