Telerik Forums
UI for WinForms Forum
1 answer
58 views

i want to hide the captionbar in ribbonbar ,which property should i use ?

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Aug 2023
1 answer
76 views

Hi! 

Showing a row error message and the warning icon can be achieved by implementing the IDataErrorInfo interface in the data source that's used for the grid, but I'd like to do the same for the child-items in the lazy-loaded hierarchy view (i.e. show a row error for the main object if one of the sub items is incorrect, but after expanding the child items also show an error icon for the individual sub-rows that are incorrect), but somehow the grid is ignoring the IDataErrorInfo implemented in the child objects. Is this an intended behaviour? 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Aug 2023
1 answer
69 views

I need to display a list of radio button elements, for that I did is created a rad panel, inside the rad panel I added a WrapLayoutpanel, Inside that I added the list of RadRadioButtonElement, The problem I am facing is if the court of the RadRadioButtonElement increases the text are truncated, It works in bigger resolution but not in smaller one, I kind of figure out if the width of the RadRadioButtonElement is greater than the text are not rendered right.

Sample code

 Private _WindowsControl As Control
    

Private _RadioButtonPanel As RadElement

 

Public Overrides Sub SetupUIElements()
        Me.TitlePanel.Margin = New Padding(0005)
        Dim minSize As New Size(5050)
        Dim radPanel = New RadPanel() With
            {
                .AutoSize = True,
                .MinimumSize = minSize
            }
        radPanel.PanelElement.PanelBorder.Visibility = ElementVisibility.Collapsed
        Me.Controls.Add(radPanel)
        _RadioButtonPanel = New WrapLayoutPanel() With
            {
                .AutoSize = True,
                .AutoSizeMode = RadAutoSizeMode.WrapAroundChildren,
                .Orientation = Orientation.Vertical,
                .StretchHorizontally = False,
                .StretchVertically = False
            }
        radPanel.RootElement.Children.Add(_RadioButtonPanel)
        _WindowsControl = radPanel
        For Each attrValue As StudyAttributeValue In Attribute.Values
            Dim radioButton = New RadRadioButtonElement() With
                {
                    .Padding = New Padding(20000),
                    .Text = attrValue.Description,
                    .IsChecked = attrValue.Selected,
                    .AutoSize = True
                }
            AddHandler radioButton.Click, AddressOf ValueChangedEventHandler
            _RadioButtonPanel.Children.Add(radioButton)
        Next
        
    

End Sub

 

 Private Sub Parent_SizeChanged(sender As Object, e As EventArgs)
        Dim parent As Control = DirectCast(sender, Control)
        If _WindowsControl IsNot Nothing Then
            Dim minSize = parent.Size
            minSize.Height -= TitlePanel.Size.Height
            minSize -= New Size(100100)
            _WindowsControl.MinimumSize = minSize
        End If
    

End Sub

 

This is an issue in production, and I need help resolving this, Please advise

 

Thanks

 

Dinko | Tech Support Engineer
Telerik team
 answered on 15 Aug 2023
1 answer
76 views

I have several RadTextBox controls on a form and want to use a single RadContextMenu to provide my own context menu. Depening on which control is selected the resulting action will be a little different. 

I have this code to assign my context menus to the 2 controls.

this.txtBreedersAccount.TextBoxElement.TextBoxItem.HostedControl.ContextMenu = new ContextMenu();
this.txtBreedersAccount.TextBoxElement.TextBoxItem.HostedControl.MouseDown += new MouseEventHandler(this.AccountContextMenu_MouseDown);
this.txtMemberAccount.TextBoxElement.TextBoxItem.HostedControl.ContextMenu = new ContextMenu();
this.txtMemberAccount.TextBoxElement.TextBoxItem.HostedControl.MouseClick += new MouseEventHandler(this.AccountContextMenu_MouseDown);

This is my MouseDown procedure.

   private void AccountContextMenu_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {                
                this.cmnuAccount.Show(MousePosition);
            }
        }

All of this works perfectly. My issue is the I can't seem to find a way to determine which of my 2 controls was actually used to instantiate the RadContextMenu. Searching the closest I could get was something like this, but it doesn't work.

        private void cmnuAccount_DropDownOpening(object sender, System.ComponentModel.CancelEventArgs e)
        {
            RadElement element = sender as RadElement;

            if (element == null)
            {
                return;
            }

            this._currentControl = element.ElementTree.Control as RadControl;
        }

Textboxes seem to be treated differently than other RadControls. If I setup the context menu on a checkbox for example it work without any issues.

I'd appreciate any help that anyone could give. Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2023
1 answer
59 views

how to refresh the radtreeview ui while the datasource of the radtreeview changed .for example add or update one record

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2023
1 answer
79 views

I'm trying to extend the default capabilities of Telerik's PropertyGrid with some custom editors. However, I'm a little perplexed as to how to get the RadPopupEditor to work.

Looking at the Telerik Theme Viewer tool, there is a rough example of what I'm trying to achieve with the TextAlignment setting (Although I intend to fill the PopupContainer with other components).



Has anyone managed to replicate this and can point me in the right direction?

Thanks!

 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Aug 2023
1 answer
71 views

When I click on a RadCheckedDropDownList, type something, and then click on another RadCheckedDropDownList control, it types into the first control I typed into (not the one I clicked on). I already have Focus() in all the click events and it's not working.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Aug 2023
1 answer
147 views

Hi,

I'm trying to implement drop of a custom item on a RadGridView, which doesn't come from a telerik control, and I need to get the row where the user has dropped the item.

I have not been able to work with the RadGridViewDragDropService, the events are never fired. Maybe I'm not registering it up correctly...

So I setup a basic winform dragenter + dragdrop events, but in the dragdrop event handler, I'm unable to get the targeted cell or row.

var point = RdgvDestinationFolder.PointToClient(new Point(e.X, e.Y));
var child = RdgvDestinationFolder.GetChildAtPoint(point);
// child is null...

I have researched others topic, and found one with a method "getelementat" but it look like it doesn't exist anymore.

I tried to workaround the issue with caching the RowMouseMove sender... but this event isn't fired when dragging over...

I'm also stuck with 2022.3.1109.40

Thanks for your help.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2023
1 answer
61 views

Hello everyone, I have hidden the radApplicationMenuButton control. The hiding method is as shown in the figure above, but when I run the program, I find that the hidden control is still displayed. I want the ribbonTabFile control on the right to be displayed directly from the far left. , how should I set up, thank you!

Best regards,

Kevin

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2023
3 answers
93 views

Hello,

I wonder if it is possible to combine the RoundRectShape with EnableHighlight and EnableBorderHighlight while also have the highlighted parts considering the rounded corners in order to not paint further as those.

 

Now, if I combine those, I have 3 issues (see picture):

1.  the complete "rectangle" button area is highlighted, means: the rounded corners are ignored

2. the highlighted border is also a rectangled border on the corners and not round.

3. when moving the mouse away (near the corners), the "lost focus" event (or something similar) seem not to fire correctly - thereby the highlighted area is still shown

 

Can this be resolved and if so: how?

 

Thanks

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Aug 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
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
+? 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?