Telerik Forums
UI for WinForms Forum
1 answer
127 views

In my listview the column header text has some space on the left and right side. How can i get rid of this space ?

 

Thanks,

Kasi

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Mar 2023
2 answers
175 views

Hi,

How can I show RadDesktopAlert always on active screen?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2023
1 answer
204 views

Hi,

sorry for a very naïve question :

When using a GridViewCheckBoxColumn with subscription to both ValueChanged events and HeaderCellToggleStateChanged, if I uncheck the header checkbox, the ValueChanged event is fired for each existing (checkbox) row in the gridview.

This is not occuring when the header checkbox is checked (in which case only the HeaderCellToggleStateChanged event occurs).

How can I prevent this behavior (while still allowing two successive events if for example I uncheck the header and just after check a row checkbox).

I probably missed some doc somewhere about this ...

Thanks

Patrick

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Mar 2023
8 answers
1.2K+ views
Anyone know how to do this?  I have several ribbon tabs on my ribbon bar control.  I want to automatically set focus to one of the ribbon tabs based on interaction elsewhere in my application.  There doesn't seem to be an obvious method to select one of the ribbon tabs as the currently selected one.
Yuji
Top achievements
Rank 1
Iron
 answered on 27 Mar 2023
1 answer
262 views

I'm trying to bind a set of RadRadioButtons to object properties: Here is the binding:

rbOwnOrRentOwn.DataBindings.Add("IsChecked", prevAddress, nameof(prevAddress.OwnOrRentOwn), false, DataSourceUpdateMode.OnPropertyChanged);

rbOwnOrRentRent.DataBindings.Add("IsChecked", prevAddress, nameof(prevAddress.OwnOrRentRent), false, DataSourceUpdateMode.OnPropertyChanged);

and here are the properties:

        public bool OwnOrRentOwn

        {
            get => _ownOrRentOwn;
            set
            {
                _ownOrRentOwn = value;
                OnPropertyChanged(nameof(OwnOrRentOwn));
            }
        }

        public bool OwnOrRentRent
        {
            get => _ownOrRentRent;
            set
            {
                _ownOrRentRent = value;
                OnPropertyChanged(nameof(OwnOrRentRent));
            }
        }

When I bind like this the object properties are not set when the buttons are selected/deselected.

The docs say that CheckState is one way to go but these enums are defined in System.Windows.Forms. This would mean I need to introduce the System.Windows.Forms into my business layer. Is this what I need to do or is there a better way.

This should be just a simple data binding.

Thanks

Carl

 

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Mar 2023
1 answer
149 views

Hi,

I have RadGridView with image column? It is possible to filter rows by image?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Mar 2023
2 answers
97 views

Hello, 

I need to change the colors of an item on my menu to bring attention to it. That part works great. Where I am having trouble is resetting it back to defaults. I am trying to use the resetvalue function to do this? Am I doing this correctly? 

With mnuForms
                .Image = My.Resources.rejectedForms16x16
                .BorderPrimitive.Visibility = ElementVisibility.Visible
                .FillPrimitive.GradientStyle = GradientStyles.Solid
                .FillPrimitive.BackColor = Color.Red
                .ForeColor = Color.White

                .ResetValue(FillPrimitive.GradientStyleProperty, ValueResetFlags.Local)
                .ResetValue(FillPrimitive.BackColorProperty, ValueResetFlags.Local)
                .ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local)
                .ResetValue(BorderPrimitive.VisibilityProperty, ValueResetFlags.Local)

End With

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Mar 2023
2 answers
108 views

Hi,

I'm using a ListView in detail view mode and was trying to format all date values so that they are displayed in short date format.
It looks like the correct way to do this is within the CellFormatting event, so it would be something like this:

Function CellFormatting(sender As Object, e As ListViewCellFormattingEventArgs)
	If isDate Then
		e.CellElement.Text = String.Format(strFormat, DirectCast(e.CellElement, DetailListViewDataCellElement).Row(e.CellElement.Data))

The thing is, I'm not sure how to determine the data type or column type that corresponds to this e.CellElement. How can I tell if the current cell contains a date, or a int, or a string, or whatever?

Thanks!

ASM
Top achievements
Rank 1
Iron
Iron
 answered on 23 Mar 2023
1 answer
109 views

Hi,

Is there a way to choose BackgroundColor of cells in RadSpreadsheet from UI that are not part of the given list of colors???
or maybe a way to edit the background color # from UI ???

 

thanks,

Efrat

Dinko | Tech Support Engineer
Telerik team
 answered on 23 Mar 2023
1 answer
136 views

I'm using the  example for the radfontdropdownlist control to attempt to set the font for the radsyntaxeditor.  So far, I haven't had any luck changing it.    

Here is an example:

I attempted to set editor.SyntaxEditorElement.Font = font as well, but while that doesn't blow up, it doesn't seem to change anything either.

Here's the full code for this event:

    Private Sub fontDropdown_SelectedFontChanged(sender As Object, e As EventArgs) Handles fontDropdown.SelectedFontChanged
        Dim editor As RadSyntaxEditor = GetActiveEditor()
        If IsNothing(editor) Then Exit Sub
        Dim ff As FontFamily = New FontFamily(fontDropdown.SelectedFont)
        If ff.IsStyleAvailable(FontStyle.Regular) Then
            Dim font As Font = New Font(ff.Name, 10, FontStyle.Regular)
            editor.SyntaxEditorElement.EditorFontFamily = font.FontFamily
        Else
            For Each style As FontStyle In [Enum].GetValues(GetType(FontStyle))
                If ff.IsStyleAvailable(style) Then
                    Dim font As Font = New Font(ff.Name, 10, style)
                    editor.Font = font
                    Exit For
                End If
            Next
        End If

    End Sub

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Mar 2023
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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?