Telerik Forums
UI for WinForms Forum
1 answer
283 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
237 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
77 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
142 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.1K+ 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
78 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
228 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
105 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
101 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
119 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)
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?