Telerik Forums
UI for WinForms Forum
1 answer
26 views

I can't consistently have the SelectedItemChanged event called when clicking an item with a Listview in IconsView.  If a click is made in empty space, the event is triggered.  

What am I missing?

Attached is a sample app.

 Thanks,

_D

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Dec 2023
2 answers
28 views

Hi team,

 

I have a scenario where we need to add line series to the chart dynamically from code behind and I need to bind live data (i.e, data changes for every 2 seconds) . I am using Telerik UI for WinForms controls . 

One static line series work perfectly fine using the demo sample. The problem is adding 'n' number of line series and setting data every 2 seconds . In the sample , data is set using a global variable. but we need to achieve the same dynamically 

 

Can anyone guide on this

Anup
Top achievements
Rank 1
Iron
 answered on 13 Dec 2023
1 answer
22 views

Mouse Down event invalid.

private void radTextBox1_MouseDown(object sender, MouseEventArgs e)
{
    radTextBox1.Text = "test";
}
Dinko | Tech Support Engineer
Telerik team
 answered on 11 Dec 2023
1 answer
30 views

I have a radgridview grid with paging.  I have a mouse double click event:


private void RgvSyncUp_MouseDoubleClick(object? sender, MouseEventArgs e)
{
	var rgv = (RadGridView)sender;
	var myRow = rgv.CurrentRow;
	var dlg = new DlgPendingSync(myRow);
	dlg.ShowDialog();
}

 

The problem I am having is this, that if the user double clicks a paging control it fires off the mouse double click event and the dialog mentioned in the code gets shown. 

Is there a way to trap or prevent this or prevent the double click on the paging control from firing off my dialog?

 

Thank you,

Kevin

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Dec 2023
1 answer
40 views

BestFitColumns is a great way to stretch/narrow your columns based on the data they contain.

There are a few issues when using this.  My suggestion deals with one of them.

Suggestion:  When using BestFitColumns, please add a new optional Parameter called "PadWidth" or something similar.  This would be an Integer value and when the BestFitColumns executes, it will add "PadWidth" pixels to the width of the column AFTER calculating the 'Best Fit' width.

Reason:  Several Themes will accurately "squeeze" column width's so they JUST BARELY fit the Column Data. While this may be the desired output, it's rather unpleasant to look at:  The data is smashed right up against both left and right cell borders.  Additionally, some themes have a 2 or more pixel, Cell FOCUSED border (I don't know what to call it.  The 'cursor' perhaps?  The visual indicator of what Cell the user is currently on. 

Anyway, as you move this 'Cursor' if you navigate to a cell where the data was the widest, this thicket "border" takes up too much room in the cell to display the entire string, and so you're back to seeing Ellipses instead of the entire data.

By adding an Optional "PadWidth" value (I'll use 10 for example) AFTER the BestFit width has been calculated but before that is applied to all columns, the cell width will gain an additional 10 pixels.  This will allow for the extra-wide Cell "cursors" as well as allow developers to create less "cramped" grids.

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Dec 2023
1 answer
31 views

Hi!

I have a chart with multiple Y axes, series, and an X axis as DateTimeContinuousAxis.

The thing is my chart is customizable and I should be able to change the series styling from line to column. When I change one of my series to a column, it is not centered with the rest of the series and according to the X-axis (see first img).

See the tooltips that the lines are at the same point (img2) but when I change to column, the column ends at that point, it is not centered.

Any suggestion?

Columns

Linear

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Dec 2023
1 answer
36 views

Hi, 

 

I add shape page. In shape of text can I do change color of text at third line similar like picture? If I choose third line of text change color can first and second text no change color? How I write it. Because user want to change or add any of text color.

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Dec 2023
2 answers
665 views
Hi..

I want to ask if there is any approach to determine the position of mouse down or up related to cell, in order to know which part of cell has been clicked.

Thanks in advance.
Jeff
Top achievements
Rank 1
Iron
 answered on 01 Dec 2023
2 answers
48 views

Hi how i can style this pagination

 

 

to be like this

more smallers letter and numbers, its possible?

 

thank you

 

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Nov 2023
3 answers
41 views

Hello,

we have an application using Telerik version 2021.3.1123.40. It is not the first time these errors were reportet, but I have no methode to reproduce it at the moment. The chain of Events for both errors is, that RadGridView.FilterChanged-Event is called, from there we call our method "UpdateProzessschritte" (UpdateProcessSteps), which does a BeginUpdate and EndUpdate of the grid. When EndUpdate is called, the 2 errors orccured under certain, unknown conditions.

  1. ERROR|TBM_HAProzessPlugin.MainForm|1|(null)| In Modul TBM|DNA - Digitaler Netzanschluss ist ein Fehler aufgetreten. System.InvalidOperationException: Die Auflistung wurde geändert. Der Enumerationsvorgang kann möglicherweise nicht ausgeführt werden.
       bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
       bei System.Collections.Generic.List`1.Enumerator.MoveNextRare()
       bei System.Collections.Generic.List`1.Enumerator.MoveNext()
       bei Telerik.WinControls.UI.DataGroup.<GetEnumerator>d__7.MoveNext()
       bei Telerik.WinControls.UI.GridViewGroupRowInfo.get_ChildRows()
       bei Telerik.WinControls.UI.GridViewRowInfo.HasChildRows()
       bei Telerik.WinControls.UI.GridTraverser.CanStepInHierarchy()
       bei Telerik.WinControls.UI.GridTraverser.StepInHierarchy()
       bei Telerik.WinControls.UI.GridTraverser.MoveNextCore()
       bei Telerik.WinControls.UI.GridTraverser.MoveNext()
       bei Telerik.WinControls.UI.GridTraverser.GoToRow(GridViewRowInfo row)
       bei Telerik.WinControls.UI.BaseGridNavigator.ProcessEventCore(GridViewEvent eventData)
       bei Telerik.WinControls.UI.BaseGridNavigator.Telerik.WinControls.UI.IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
       bei Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(GridViewEvent gridEvent, PriorityWeakReferenceList list, GridEventProcessMode processMode)
       bei Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(GridViewEvent gridEvent)
       bei Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(GridViewEvent gridEvent)
       bei Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents()
       bei Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewEvent gridEvent)
       bei Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewTemplate template, GridViewEvent eventData, Boolean postUI)
       bei Telerik.WinControls.UI.GridViewTemplate.DispatchEvent(GridViewEvent gridEvent, Boolean postUI)
       bei Telerik.WinControls.UI.GridViewTemplate.DispatchDataViewChangedEvent(Object sender, DataViewChangedEventArgs args)
       bei Telerik.WinControls.UI.GridViewTemplate.OnViewChanged(Object sender, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.MasterGridViewTemplate.OnViewChanged(Object sender, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.GridViewTemplate.EndUpdate(Boolean notify, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.MasterGridViewTemplate.EndUpdate(Boolean notify, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.GridViewTemplate.EndUpdate()
       bei Telerik.WinControls.UI.RadGridView.EndUpdate()
       bei TBM_HAProzessPlugin.MainForm.UpdateProzessschritte(RadGridView radGridView, RadDiagram radDiagram, Dictionary`2 prozessDauerListe, List`1 schritte) in C:\Program Files (x86)\Jenkins\jobs\TBM_DNA_Digitaler_Netzanschluss_WP\workspace\TBM_HAProzessPlugin\src\Forms\MainForm.cs:Zeile 510.
       bei TBM_HAProzessPlugin.MainForm.rgvHAAkten_FilterChanged(Object sender, GridViewCollectionChangedEventArgs e) in C:\Program Files (x86)\Jenkins\jobs\TBM_DNA_Digitaler_Netzanschluss_WP\workspace\TBM_HAProzessPlugin\src\Forms\MainForm.cs:Zeile 442.

    [Translation]: Collection was modified; enumeration operation may not execute


  2. ERROR|TBM_HAProzessPlugin.MainForm|1|(null)| In Modul TBM|DNA - Digitaler Netzanschluss ist ein Fehler aufgetreten. System.ArgumentException: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.
       bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       bei System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
       bei Telerik.WinControls.Data.GroupBuilder`1.Perform(IReadOnlyCollection`1 items, Int32 level, Group`1 parent)
       bei Telerik.WinControls.Data.GroupBuilder`1.get_Groups()
       bei Telerik.WinControls.Data.RadDataView`1.get_Groups()
       bei Telerik.WinControls.UI.GridViewInfo.Refresh()
       bei Telerik.WinControls.UI.GridViewInfo.get_ChildRows()
       bei Telerik.WinControls.UI.GridViewTemplate.get_ChildRows()
       bei Telerik.WinControls.UI.ViewInfoTraverser.SetCollectionForStage(Boolean initializeCollection)
       bei Telerik.WinControls.UI.ViewInfoTraverser.ChangeCollectionForward()
       bei Telerik.WinControls.UI.ViewInfoTraverser.MoveNextCore()
       bei Telerik.WinControls.UI.ViewInfoTraverser.MoveNext()
       bei Telerik.WinControls.UI.GridTraverser.MoveNextCore()
       bei Telerik.WinControls.UI.GridTraverser.MoveNext()
       bei Telerik.WinControls.UI.GridTraverser.GoToRow(GridViewRowInfo row)
       bei Telerik.WinControls.UI.BaseGridNavigator.ProcessEventCore(GridViewEvent eventData)
       bei Telerik.WinControls.UI.BaseGridNavigator.Telerik.WinControls.UI.IGridViewEventListener.ProcessEvent(GridViewEvent eventData)
       bei Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(GridViewEvent gridEvent, PriorityWeakReferenceList list, GridEventProcessMode processMode)
       bei Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(GridViewEvent gridEvent)
       bei Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(GridViewEvent gridEvent)
       bei Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents()
       bei Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewEvent gridEvent)
       bei Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewTemplate template, GridViewEvent eventData, Boolean postUI)
       bei Telerik.WinControls.UI.GridViewTemplate.DispatchEvent(GridViewEvent gridEvent, Boolean postUI)
       bei Telerik.WinControls.UI.GridViewTemplate.DispatchDataViewChangedEvent(Object sender, DataViewChangedEventArgs args)
       bei Telerik.WinControls.UI.GridViewTemplate.OnViewChanged(Object sender, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.MasterGridViewTemplate.OnViewChanged(Object sender, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.GridViewTemplate.EndUpdate(Boolean notify, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.MasterGridViewTemplate.EndUpdate(Boolean notify, DataViewChangedEventArgs e)
       bei Telerik.WinControls.UI.GridViewTemplate.EndUpdate()
       bei Telerik.WinControls.UI.RadGridView.EndUpdate()
       bei TBM_HAProzessPlugin.MainForm.UpdateProzessschritte(RadGridView radGridView, RadDiagram radDiagram, Dictionary`2 prozessDauerListe, List`1 schritte) in C:\Program Files (x86)\Jenkins\jobs\TBM_DNA_Digitaler_Netzanschluss_WP\workspace\TBM_HAProzessPlugin\src\Forms\MainForm.cs:Zeile 510.
       bei TBM_HAProzessPlugin.MainForm.rgvHAAkten_FilterChanged(Object sender, GridViewCollectionChangedEventArgs e) in C:\Program Files (x86)\Jenkins\jobs\TBM_DNA_Digitaler_Netzanschluss_WP\workspace\TBM_HAProzessPlugin\src\Forms\MainForm.cs:Zeile 442.

    [Translation]: Item with Same Key has already been added

 

Do you have any ideas which causes could lead to this exceptions and how to fix it? Or is this a known problem which was already fixed in later versions?

Stephan
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 30 Nov 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
Buttons, RadioButton, CheckBox, etc
DropDownList
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)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
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
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?