Telerik Forums
UI for WinForms Forum
1 answer
91 views

I need to add a RadioButton column to my grid and I adapted the code in this demo to do it:

https://docs.telerik.com/devtools/winforms/knowledge-base/creating-a-radradiobuttoncellelement

The difference is I need a single radio button on each row and they need to be mutually exclusive of one another. This part is now working.

Using some sample credit card data, I have 3 challenges that I can't figure out:

1. How can I start the attached project and set the button for the credit card need selected when the form loads?

2. How can I retrieve the selected credit card id value (if any)?

3. I also seem to have a visual bug whereby when I scroll the grid up and down sometimes the button deselects and sometimes it seems to select a second option.

Could you please examine the attached project and let me know what I'm missing?

Thanks

Carl

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 18 Feb 2025
1 answer
82 views

Hi All,

 

I have a requirement to convert the mouse position in thepicture box control to the actual pixel position within the image. This must work when image layout is set to zoom, and handle when the image is zoomed in / out and panned within the control. If the mouse is moved outside of teh image but is still within the picture box then the X/Y coordinates would be set to -1, -1.

Is there any helper functions or sample code I can use to achieve this?I have a simple solution but this does not handle when the image is zoomed / panned.

Many thanks
Toby

 

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Feb 2025
1 answer
329 views


I regret to say that my experience with Telerik UI for WinForms has been extremely disappointing. I purchased this product expecting high-quality controls and performance for my applications, but it has failed to meet even basic expectations.

Key Issues:

  1. Severe Performance Problems:
    The application built with Telerik UI for WinForms suffers from severe slowness, especially when working with large datasets or complex controls like grids. Virtualization and optimization options provided by Telerik are either ineffective or insufficient for real-world use cases.

  2. Poor User Experience:
    The slow responsiveness of Telerik controls has led to constant client complaints. This directly impacts my business as my clients are frustrated with the application's usability.

  3. No Solutions from Telerik:
    Despite searching extensively in forums and documentation, there are no practical solutions to the performance issues. Even technical support responses lack clarity and effectiveness.

  4. Waste of Money:
    Considering the price of the Telerik license, the performance and value provided are far below expectations. My clients are losing faith in my software, and I am unable to justify renewing or continuing with Telerik products.

Conclusion:

I strongly advise others to reconsider investing in Telerik UI for WinForms if performance and user experience are critical for your applications. The cost does not match the value provided. I will not be renewing my license and am exploring alternative UI frameworks like DevExpress or Syncfusion.

Plamen Mitrev
Telerik team
 answered on 14 Feb 2025
2 answers
138 views

Objective: get the icon of a file (word,excel,pdf,...) 

In L4G, I use the ExtractAssociatedIconA function to obtain a handle for an icon stored as a resource in a file or an icon stored in the executable file associated with a file.
And I associate it with a button using the SendMessageA function.

Example code:
  DEFINE VARIABLE FILENAME AS CHARACTER NO-UNDO.        
  DEFINE VARIABLE IconInd AS INTEGER NO-UNDO.
  DEFINE VARIABLE hIcon AS INTEGER NO-UNDO.
  DEFINE VARIABLE iOldIcon AS INTEGER NO-UNDO.

  DO WITH FRAME {&FRAME-NAME}: 
    IF NUM-ENTRIES(RowObject.com_cha:SCREEN-VALUE,CHR(9)) > 0 THEN
      DO i = 1 TO NUM-ENTRIES(RowObject.com_cha:SCREEN-VALUE,CHR(9)):
          VIEW hbutton[i] hfillin[i].
          hbutton[i]:SELECTABLE = TRUE.
          ASSIGN DisplayName = ENTRY(i,RowObject.com_cha:SCREEN-VALUE,CHR(9)).
          IF Filename <> "" THEN
          DO:
            RUN ExtractAssociatedIconA(INPUT 0,INPUT-OUTPUT NomFich,INPUT-OUTPUT IconInd,OUTPUT hIcon).
            RUN SendMessageA( hButton[i]:HWND, {&BM_SETIMAGE}, {&IMAGE_ICON}, 0, OUTPUT iOldIcon).
            RUN SendMessageA( hButton[i]:HWND, {&BM_SETIMAGE}, {&IMAGE_ICON}, hIcon, OUTPUT iOldIcon).
          END.

I want to do the same thing with a RadGridView? I've added an ima column as type GridViewImageColumn and in the : 
METHOD PRIVATE VOID GridLien_CellFormatting I'd like to put the image 
RUN SendMessageA( e:CellElement:?????? {&BM_SETIMAGE}, {&IMAGE_ICON}, hIcon, OUTPUT iOldIcon).
Can you help me?
Thank you

Laurent
Top achievements
Rank 1
Iron
Iron
 answered on 13 Feb 2025
1 answer
116 views
Fantastic! But I didn't understand how to do it... Can anyone help me figure out how to create a date only or time only column
Nadya | Tech Support Engineer
Telerik team
 answered on 13 Feb 2025
0 answers
99 views

I'm trying to get a barcodeview  routine working, but it keeps telling me that the Overload resolution fails - actually on every single (6) of them!

Would you mind looking at this code and letting me know what needs to be changed to get this to work?

    Private Sub GenerateBarCode()
        Dim RadBarcodeView1 As RadBarcodeView = New RadBarcodeView()
        RadBarcodeView1.Height = 10
        RadBarcodeView1.Width = 60
        Dim code39Extended1 As Telerik.WinControls.UI.Barcode.Symbology.Code39Extended = New Telerik.WinControls.UI.Barcode.Symbology.Code39Extended()
        RadBarcodeView1.Symbology = code39Extended1
        RadBarcodeView1.Value = "123456"
        RadBarcodeView1.LoadElementTree()
        Dim fileName As String = IO.Path.Combine(Application.StartupPath, $"{RadBarcodeView1.Value}.png")
        If IO.File.Exists(fileName) Then
            IO.File.Delete(fileName)
        End If
        Dim BarcodeSize As New Size(100, 10)
        Dim img As Image = RadBarcodeView1.ExportToImage(fileName, BarcodeSize, Imaging.ImageFormat.Png)
        img.Save(fileName, System.Drawing.Imaging.ImageFormat.Png)
    End Sub

Please refer to the attached image

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
 updated question on 10 Feb 2025
2 answers
80 views

Nothing is displayed when I try this code:

UserControls.ucCallout oCallOutForm = new UserControls.ucCallout();            

radCallout.AssociatedControl = oCallOutForm;

radCalloutMarkers.Show(MyCustomUserControl);

When I change the last line to this, the CallOut form is being displayed, but it's being displayed on top of everything else (even other open application windows):

radCalloutMarkers.Show(System.Windows.Forms.Cursor.Position);

I would like to have a callout form which contains a button and when clicked it should show a flyout input form to enter some text.   When I use the callout pointing to the cursor position instead of a control, the flyout window is painted behind the callout form so no user input is possible.

Sven
Top achievements
Rank 1
Iron
 updated answer on 06 Feb 2025
1 answer
59 views

Since there isn't a built-in context menu for a MaskedEdit, I tried to add one. However, I can't get it to display. 

I added a contextMenuStrip and then added a menuItem.

I added the menuItem click event

I added the contextMenuStrip to the MaskedEdit field

When I test it (right-click on the field), nothing happens.

I also tried other events on the MaskedEdit field like the mouse click event and it never calls it when I click on the field.

What am I missing? (screenshot attached)


		private void miCopy_Click(object sender, EventArgs e)
		{
			try
			{
				TextBoxBase thiscontrol;
				thiscontrol = (TextBoxBase)ActiveControl;
				if (thiscontrol.SelectionLength > 0)
				{
					thiscontrol.Copy();
				}
			}
			catch (Exception)
			{
			}
		}

 

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Feb 2025
1 answer
69 views

¡Hi everyone! I have this issue loading a pdf with the RadPdfViewer.
On the RadPdfViewer DataError event i got an InvalidOperationException with only the "Stack empty" messsage,

 

This is the stacktrace of the exception thown by the PdfExceptionEventArgs

   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Stack`1.Pop()
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.DocumentModel.PdfContext.RestoreGraphicState()
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.Parsers.ContentStreamParser.InvokeGeneralGraphicsStateOperator(String op, Object[] pars)
   at Telerik.Windows.Pdf.Documents.Fixed.FormatProviders.Old.Pdf.PdfReader.Parsers.ContentStreamParser.InvokeOperator(String op, Object[] pars)

Can you please tell me what could be the possible reason of this issue ? Thanks

PS. The file is on the zip attached

Nadya | Tech Support Engineer
Telerik team
 answered on 05 Feb 2025
1 answer
55 views

Regarding the RadMaskedEditBox using the provided Email MaskType:

The error validation icon displays when there is an error, but it doesn't prevent the user from leaving the field. 

How can I prevent the user from leaving the field with this MaskType?

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Feb 2025
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?