Telerik Forums
UI for WinForms Forum
3 answers
499 views

Hello , I am new in Telerik WinForms.

My situation is group all items by its Product Name, while Product has its own price . e.g Product-1 has multiple values/items , similaly Product-2 has own items/values. I know in this situation Grouping concept is used i-e Group By Product, but I want to show Price of that Group along with Product Name.

For clarity i have attached a picture. I want this result in RadListView / Any other Control. Please help me along with coding.

 

Thanks

 

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

Hi,

I'm creating a usercontrol wich contains a RadCommandbar and an editor (richtext).

The commandbar contains two CommandBarDropDownList and standards radbutton.

I'm trying to prevent dropdownlists from gaining focus when I press tab, but neither can focus on dropdownlists nor tabstop on commandbar working.

Focus is still in my first CommandBarDropDownList.

 

I even tried https://docs.telerik.com/devtools/winforms/controls/commandbar/how-to/prevent-the-control-from-gaining-focus.

 

To explain exactly what's suppose to happen, when tab key is pressed the user control should gain focus, the commandbar should be skipped and the editor become the active control (kind of).

 

Thanks a lot for helping me.

 

Cf: my userControl

 

 

Fabrice
Top achievements
Rank 2
Iron
Iron
 answered on 14 Jan 2021
1 answer
327 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
270 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
104 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
165 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.3K+ 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
107 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
265 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
120 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
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
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?