Telerik Forums
UI for WinForms Forum
6 answers
3.8K+ views
When a property is changed through my property grid, I want to make sure the tree is up to date.

private void radPropertyGridNode_PropertyValueChanged(object sender, PropertyGridItemValueChangedEventArgs e)
{
     radTreeView.Refresh();
}

Refresh() does not work.
Invalidate() does not work.
Update() does not work.

Hovering the control using the mouse does work.

How can I programmatically update the tree so that it fires the NodeFormatting event (where my nodes are updated)?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jan 2021
2 answers
145 views

I want to distinguish between: 

A) Tab close.

B) Tab being dragged out into a new parent window  

 

Both of the above call: TabRemoving, TabRemoved

What is the proper event or technique to distinguish between A and B?

n/a
Top achievements
Rank 1
Veteran
 answered on 14 Jan 2021
3 answers
235 views

I am using your drag and drop service between grids.  Code is working fine for 10 rows.  Lager multirow selections error out.  I have experimented and have determined that if the rows are not showing in the grid I get this error.  For example, if my grid visually shows 10 rows and I select all of those rows and drag them to another grid all works fine.

If I select the first row and scroll down to select the 11th row while holding down the shift key, all eleven rows are selected.  However dragging then to the other grid I get an error in the svc_PreviewDragDrop method on the line:      var dragGrid = rowElement.ElementTree.Control as RadGridView;

 

Error Message below:

Date Time:1/9/2021 6:45:16 PM
Exception Name:Object reference not set to an instance of an object.
Event Name:System.NullReferenceException: Object reference not set to an instance of an object.
   at SmartView_V2.frmMainForm.svc_PreviewDragDrop(Object sender, RadDropEventArgs e) in C:\Users\claud\Documents\Visual Studio 2019\Projects\SmartView V2\frmMainForm.cs:line 2387
Control Name:svc_PreviewDragDrop
Form Name:frmMainForm

 

 

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

Hi, I have a loop where I am filling the grid and immediatelly print the grid. All printed documents have the same grid values of the last loaded records to the grid DataSource. Is there something I can do to properly print the grid with correct cell values from actual records?

foreach (var run in _runsToPrint)
{
    FillReportedAnalytesGrid();
    PrintPreview.PrintGrid(rgvReportedAnalytes, run);
}
 private void FillReportedAnalytesGrid()
{
    var records = provider.GetReportedResults();
    rgvReportedAnalytes.DataSource = null;
    rgvReportedAnalytes.DataSource = records;
    rgvReportedAnalytes.BestFitColumns(BestFitColumnMode.AllCells);
    rgvReportedAnalytes.Refresh();
}

 

public static void PrintGrid(RadGridView view, string run)
{
    var document = new RadPrintDocument();
    view.Print(false, document);
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Jan 2021
1 answer
70 views

Are there any options to make a tooltip in which you can place Text, Buttons, etc.?

Something like this:

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Jan 2021
3 answers
386 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
115 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
220 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
194 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
57 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
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?