Telerik Forums
UI for WinForms Forum
1 answer
73 views

Dear Sir

When I using the demo winform (version. 2025 Q1), all the menu drop-down menus were not displayed in the correct position for the first time. Include the controls of menus and ribbon bar in hidden mode. Could you please checked the display problem. Is there any solution to prevent the error from showing? Thanks.


Dinko | Tech Support Engineer
Telerik team
 answered on 27 Mar 2025
1 answer
74 views

Hi

I have a GridView with a relational hierarchy of two levels connected via two manual relations and two templates.

 


			gridViewRelation1.ChildColumnNames.Add("AktivitaetVorgang");
			gridViewRelation1.ChildTemplate = this.templateFremdeAktivitaetVorgaenge;
			gridViewRelation1.ParentTemplate = this.radGridPsz.MasterTemplate;
			gridViewRelation1.RelationName = "relationAktivitaetVorgang";

			gridViewRelation2.ChildColumnNames.Add("VorgangHandlungsBedarf");
			gridViewRelation2.ChildTemplate = this.templateFremdeVorgangHandlungsbedarfe;
			gridViewRelation2.ParentTemplate = this.templateFremdeAktivitaetVorgaenge;
			gridViewRelation2.RelationName = "relationVorgangHandlungsbedarfe";

			this.radGridPsz.Relations.AddRange(new Telerik.WinControls.UI.GridViewRelation[] {
				gridViewRelation1,
				gridViewRelation2});

The template of the second level is added to the Maintemplate, the template of the third level is added to the template of the second level.

Everything is working fine at first.

But if I save the layout of the grid and reload it after closing and opening the application again (via radGrid.SaveLayout and radGrid.LoadLayout),  there are no rows in the third level, although the datasource is the same, and they were there in the beginning.

The rows of the second level do not have childRows although the templates and relations are still there

 

 

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Mar 2025
1 answer
69 views

Hi 

I am designing a WinForm App using UI for WinForms (ver. 2025 Q1). Is there any solution to add a search box to the radform title bar? It looks like the search box at th top of Microsoft Outlook 365 application.

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Mar 2025
1 answer
48 views

Hi everyone, i use Telerik.WinControls.UI.Barcode to generate QR and every thing is fine with android reads, but IOS read said No usable data found.  Could you help me? This is my code

private void PrintDoc_PrintPage(object sender, PrintPageEventArgs e)
{
    printDoc.DefaultPageSettings.PaperSize = new PaperSize("Etiqueta5", 300, 150);
    printDoc.DefaultPageSettings.Landscape = true;

    float leftMargin = e.MarginBounds.Left;
    float topMargin = e.MarginBounds.Top;
    float printableWidth = e.MarginBounds.Width;
    float printableHeight = e.MarginBounds.Height;

    float labelWidth = 300; 
    float labelHeight = 150;



    float qrSize = 150;
    float margin = 3; 

    Font font = new Font("Arial", 9, FontStyle.Bold);
    Font smallerFont = new Font("Arial", 8, FontStyle.Bold);
    Brush brush = Brushes.Black;

    while (_currentRowIndex < dgv_resultado.Rows.Count)
    {
        DataGridViewRow row = dgv_resultado.Rows[_currentRowIndex];

        
        string idBien = row.Cells["IDBien"].Value?.ToString() ?? "N/A";
        string url = "http://www.mypage.com/";
        string articulo = row.Cells["Articulo"].Value?.ToString() ?? "N/A";
        string serie = row.Cells["NumSerie"].Value?.ToString() ?? "N/A";
        string fondos = ObtenerFondos(idBien);
        string contraloria = "";
        if (bandera == 0)
        {
            contraloria = row.Cells["NumContraloria"].Value?.ToString() ?? "N/A";
        }
        else 
        {
            contraloria = row.Cells["NoContraloria"].Value?.ToString() ?? "N/A";
        }

        string qrData = $"IdBien:{idBien}|Liga:{url}|Artículo:{articulo}|Serie:{serie}|Fondos:{fondos}|Contraloría:{contraloria}";


        byte[] utf8Bytes = Encoding.UTF8.GetBytes(qrData);
        string qrDataUtf8 = Encoding.UTF8.GetString(utf8Bytes);

        rbv_code.Value = qrDataUtf8;

        Bitmap qrImage = new Bitmap(rbv_code.Width, rbv_code.Height);
        rbv_code.DrawToBitmap(qrImage, new Rectangle(0, 0, qrImage.Width, qrImage.Height));

        float xStart = (e.PageBounds.Width - labelWidth) / 2;  
        float yStart = 0; 

        float qrXPosition = xStart + (labelWidth - qrSize) / 2;
  
        e.Graphics.DrawImage(qrImage, qrXPosition, yStart + margin, qrSize, qrSize);

        float textYPosition = yStart + qrSize + (2 * margin);
        string unisonText = "My Page";
        SizeF unisonSize = e.Graphics.MeasureString(unisonText, font);
        e.Graphics.DrawString(unisonText, font, brush, xStart + (labelWidth - unisonSize.Width) / 2, textYPosition);

        textYPosition += 15; 

        try
        {
            PostDataToApiNormal(Convert.ToInt32(idBien), Empleado);
        }
        catch { }
        

        string idBienText = $"ID: {idBien}";
        SizeF idBienSize = e.Graphics.MeasureString(idBienText, smallerFont);
        e.Graphics.DrawString(idBienText, smallerFont, brush, xStart + (labelWidth - idBienSize.Width) / 2, textYPosition);

       

        if (pb_logo.Image != null)
        {
            float imageHeight = 35; 
            float imageWidth = 35; 
            float imageXPosition = xStart + (labelWidth - imageWidth) / 2; 
            float imageYPosition = textYPosition + 20; 
            

            for (float offset = -0.5f; offset <= 0.5f; offset += 0.5f)
            {
                e.Graphics.DrawImage(pb_logo.Image, imageXPosition + offset, imageYPosition + offset, imageWidth, imageHeight);
            }
        }

        

        _currentRowIndex++;
        if (_currentRowIndex < dgv_resultado.Rows.Count)
        {
            e.HasMorePages = true;
            return;
        }
    }

    e.HasMorePages = false;
}
Nadya | Tech Support Engineer
Telerik team
 answered on 20 Mar 2025
1 answer
65 views

We have a form in our application with just a RadSpreadsheet element that loads a local Excel file. 

It works fine on the machine we developed the appplication on. After we installed it on our machine for testing we get the following error when opening the form (full exception in attachments):

"Type 'Telerik.WinControls.UI.RadButtonAccessibleObject' has a ComVisible(false) parent 'System.Windows.Forms.Control+ControlAccessibleObject' in its hierarchy, therefore QueryInterface calls for IDispatch or class interfaces are disallowed."

The spreadsheet is then also crossed out in red.

 

Is there maybe something we are missing here?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Mar 2025
1 answer
57 views
How can I prevent the controls at the top of the form from spacing out when the form is larger than my design size? I would prefer that the tabbedgroup at the bottom just expand to fill the available space, but I cannot seem to make that work.
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Mar 2025
1 answer
70 views

Hello,

is there any alternate available to apply specific theme directly on win form controls other than making a change in stylesheet (to apply different colors and appearance?) basically, for specific theme user wants to apply different color. one option is to create .tsp file and add it to resource. so is there any other way possible where user don't need to create. tsp or any other file and by using direct property he can achieve the same.  (controls like date time picker, calendar, tree view, Rad buttons etc.)

Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 13 Mar 2025
1 answer
107 views

We set AllowDeleteRow = true, but this doesn't seem to do anything.

What is the default capability for deleting rows/records in the GridView?

Is there a default 'delete'-button or context menu we can show, or do we need to implement it oursleves? The documentation is quite lacking here...

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Mar 2025
1 answer
55 views

We want to switch the gridview to german. 

This article suggests we have to provide our own translations: Localization - UI for WinForms Documentation - Telerik UI for WinForms

We actually would prefer not to do that...

Are there any default translations we can use? If so, how would we integrate them?

If not; where exactly does the provider class reside in our application, and where do we need to set the CurrentProvider?

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Mar 2025
1 answer
84 views

My users want a UI that looks like the screen capture below. They want to be able to drag squares from the top frame to the bottom (mutually exclusive) and reorder them within the bottom frame and then save/restore between editing sessions. Do you have a control designed for this?

Thanks

Carl

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Mar 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?