Telerik Forums
UI for WinForms Forum
1 answer
141 views

So after i update data, gantt resets the position to the starting position, and i want to remain the same position

how to do that ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Dec 2019
6 answers
145 views
I have a RadGridView which Layout should be saved whenever a column is added or removed by the user via columnChooser.

I added this code in Form.OnLoad:

foreach (GridViewDataColumn column in  myGrid.Columns)
{
  column.RadPropertyChanged += GridViewColumn_RadPropertyChanged;
}

And here is GridViewColumn_RadPropertyChanged event:

if (e.Property.Name == "IsVisible")
{
  myGrid.SaveLayout(myPath);
}


This works fine - as long as I do not load an existing GridLayout. When I check in Form.OnLoad if there is an saved layout file and load that layout file for my Grid, the RadPropertyChanged event will not be fired anymore. Is there something additional I have to do with RadGridView after a layout has been loaded successfully?
pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 12 Dec 2019
2 answers
196 views

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

Dominik
Top achievements
Rank 1
 answered on 12 Dec 2019
4 answers
328 views

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

 

 

Dominik
Top achievements
Rank 1
 answered on 12 Dec 2019
5 answers
2.0K+ views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Dec 2019
17 answers
86 views
Dear sir,
i want to show RadialGauge in Gridview in Telerik UI winform using in Desktop App but it's not working.
i need like this image
it is requested that help / guidance may be provided that how to radRadial gauge in Rad gridview  cell in Winform.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Dec 2019
1 answer
118 views

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 1
RadButton 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);

Nadya | Tech Support Engineer
Telerik team
 answered on 11 Dec 2019
6 answers
725 views
Hello,

is there any way to set a single property Label font style to bold in the Grid? and is there also a way to set a different background color for the value input field?

I want show the user this property value is required. For this purpose I created a PropertyStoreItemExtended class inheriting the PropertyStoreItem with an added property Required. Now I have to find a way to customize Label and/or Value field in case of the Required property value.

Which PropertyGridEvent or (overridden) Methods can be used for that pupose?


Greetings from Leipzig

Holger Boskugel
--
http://vbwebprofi.de
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Dec 2019
3 answers
195 views

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.WinControls
Imports Telerik.WinControls.Layouts
Imports Telerik.WinControls.UI
 
Class 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 Property
End 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. 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Dec 2019
2 answers
1.6K+ views

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

Dominik
Top achievements
Rank 1
 answered on 09 Dec 2019
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
DropDownList
Buttons, RadioButton, CheckBox, etc
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)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?