Telerik Forums
UI for WinForms Forum
1 answer
319 views

How set margin for Image in RadContextMenu (RadMenuItem)?

Now when setting the image to RadMenuItem, it is too close to the text and left border. How to regulate it?

Nadya | Tech Support Engineer
Telerik team
 answered on 13 Jan 2021
8 answers
258 views
Hello,

How can I do to put a popup menu (with right click) in the GridView ?. One of the options should be a Spinner.

Attached image.

Thank you very much.

Nadya | Tech Support Engineer
Telerik team
 answered on 13 Jan 2021
1 answer
95 views
How to replace DropDown (New tab, Close tab, Close other ...) with the system context menu ( new ContextMenu();).
I got to delete the menu like this:
RadTabbedFormControl.ContextMenuOpening += (obj, arg) => {
                arg.ContextMenu.Items.Clear();
};

And to make a new menu, I tried to do it using MouseDown:
e.Tab.Item.MouseDown += (obj, args) => {
            if(args.Button == MouseButtons.Right)
                {
                    ContextMenu testMenu= new ContextMenu();
                    testMenu.MenuItems.Add("Test");
                    testMenu.Show(e.Tab, new Point(args.Location.X + 5, args.Location.Y - 35));
                }
};

But there was a problem with the error (Unable to display ContextMenu in invisible control) when clicking on an inactive tab.

Can you tell me another way?

Nadya | Tech Support Engineer
Telerik team
 answered on 13 Jan 2021
3 answers
156 views
The default tabs have a context menu. How can it be completely replaced or modified by removing unnecessary and adding new ones?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
7 answers
1.2K+ views

Hi, I'm using below code to validate items in the data entry. This event triggers whenever the items lose focus.

 

dataEntry.ItemValidated += (s, e) =>
                    {
                        ContactEntries employee = dataEntry.CurrentObject as ContactEntries;
                        if (e.Label.Text == "Contact person:")
                        {
                            if (employee.contactPerson.Length < 10)
                            {
                                Console.WriteLine("validated");
                                e.ErrorProvider.SetError(s as Control, "Field is required");
                                if (!dataEntry.ValidationPanel.PanelContainer.Controls.ContainsKey("Contact person:"))
                                {
                                    RadLabel label = new RadLabel();
                                    label.Name = "contactPerson";
                                    label.Text = "<html><size=10><b><color= Red>Contact person: </b><color= Black>First Name should be between 2 and 15 chars long.";
                                    label.Dock = DockStyle.Top;
                                    label.AutoSize = false;
                                    label.BackColor = Color.Transparent;
                                    dataEntry.ValidationPanel.PanelContainer.Controls.Add(label);
                                }
                            }
                            else
                            {
                                e.ErrorProvider.Clear();
                                dataEntry.ValidationPanel.PanelContainer.Controls.RemoveByKey("contactPerson");
                            }
                        }
                    };

 

On the first page of the data entry, the items contains predefined values, but the data entry is also connection with a binding navigator, allowing users to add a new page. How can I validate these two pages in case the user does not click each item that will trigger the validation?

 

Is there some way I can trigger the ItemValidated event manually? 

 

Thanks in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
3 answers
97 views

How do I get the RadTabbedFormControlTab in the ContextMenuOpening on which the context menu was called?

RadTabbedFormControl.ContextMenuOpening += (obj, arg) => {
                arg.TabItem // There is only a TabItem, which is not a RadTabbedFormControlTab :(
};

 

I would like to get the tab on which the menu was called

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
4 answers
253 views
Hello !! There are any way to rotate the X-Y diagram of the chart ? like the attached picture. thx !!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jan 2021
2 answers
115 views

Greetings,

 

         I am interested in knowing why code 1 works but code 2 below does not in repositioning the scroll on a RadGridView. Also, any posibile solution as to why code 2 does not work would be appreciated. Thank you.

Works:

Code 1 : dvTrackingLog.TableElement.ScrollTo(30, 0);

Code 1a: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[30];

AutoScrollGrid(30);

Code 1b: dvTrackingLog.TableElement.ScrollTo(rowIndex, 0);

Code 1c: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[rowIndex];

Does not work:

Code 2: dvTrackingLog.TableElement.ScrollTo(dvTrackingLog.SelectedRows[0].Index, 0);

Code 2a: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[dvTrackingLog.SelectedRows[0].Index];

AutoScrollGrid(rowIndex);

Code 2b: dvTrackingLog.TableElement.ScrollTo(rowIndex, 0);

Code 2c: dvTrackingLog.CurrentRow = dvTrackingLog.Rows[rowIndex];

 

 

Andrey
Top achievements
Rank 1
 answered on 12 Jan 2021
1 answer
107 views

I can move and show trackball programmatically from this thread https://www.telerik.com/forums/programatically-move-and-show-trackball.

And how to hide trackball programmatically?

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Jan 2021
3 answers
136 views
Hello again !, it's posible to set multiple panes on the chart ?? Thx !
Nadya | Tech Support Engineer
Telerik team
 answered on 12 Jan 2021
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)
Form
Chart (obsolete as of Q1 2013)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?