Telerik Forums
UI for WinForms Forum
0 answers
314 views

Telerik UI for WinForms controls used to be automatically added to Visual Studio's Toolbox during the installation process when using .NET 2.0 (up to 4.8) Framework in your project. This means that the Toolbox population relies on the Telerik WinForms version available in the Global Assembly Cache.

With the introduction of .NET Core/.NET 5 and the WinForms designer, the Toolbox configuration doesn't rely on the GAC anymore and it is not necessary to have an installation of the Telerik UI for WinForms suite. The Toolbox version depends on the installed NuGet package:
https://docs.telerik.com/devtools/winforms/core/core-toolbox-version

There is a known issue that any UserControls/ custom controls don't show up in the toolbox for a VB  project with .NET6.  Even the RadControls are not loaded in the toolbox. 

This seems to be a known issue introduced in Visual Studio 2022 17.3 only for VB project with .NET6. Microsoft are currently working on the issue and I believe that an update will be introduced with the fix: https://developercommunity.visualstudio.com/t/Custom-and-User-Controls-not-shown-in-To/10118197 

 
Dess | Tech Support Engineer, Principal
Telerik team
 updated question on 22 Aug 2022
0 answers
464 views

Only users that have Telerik installation version 2021.1.122 are affected.

Symptoms:

Clients that have Telerik installation version 2021.1.122 can not build successfully .NET Core/.NET 5.0 projects. The following error occurs while compiling the project:

The problem is a missing NuGet fallback folder.

Solution:

You should create the missing ToolboxNuGetPackages folder in the installation folder of the controls, usually at C:\Program Files (x86)\Progress\ToolboxNuGetPackages.

Nadya
Top achievements
Rank 1
 asked on 28 Jan 2021
2 answers
8 views

Hi guys,

Anyone knows how to disable the right click in the filter row? As the filter use the same ContextMenuOpening.

 

 

Henri
Top achievements
Rank 1
Iron
 answered on 27 Sep 2023
1 answer
4 views

Hello,

I have a RadRibbonBar and I have added a Group for themes. Inside that I have added a RadGalaryElement control, within this I want to add themes exactly as shown in the below screenshot. When hovering mouse on theme, it shows large icon. (The attached screenshot is from different tool)

1.

2. On clicking the bottom button popup appears with all the themes name + Image.

 

Please add all the themes and attach a source code zip file.

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Sep 2023
6 answers
18 views

Hi Dinko and team ,

Tried to migrate from Visual studio 2010 project along with Telerik.WinControls.UI.dll - Version - 2013.3.1.1127  to Visual studio 2022 with Telerik.WinControls.UI.dll - Version 2023.1.314.

There are random stackoverflow exceptions throughout project. In older version Telerik 2013.3.1.1127  is working with no issues only in Visual studio 2022  Telerick 2023.1.314 creating issue.

Found the RadDropDownList is the root cause So

As Dinko | Tech Support Engineer Telerik suggested in forum tried the below code

cmbValveSize_SelectedIndexChanged -= cmbValveSize_SelectedIndexChanged;

cmbValveSize.SelectedValue = 3;

cmbValveSize.SelectedIndexChanged += cmbValveSize_SelectedIndexChanged;

The stackoverflow is got resolved at this point so we applied the same code wherever SelectedValue getting assigned throughout project but when we call recursive functions the SelectedValue is getting assigned as null since the assigned value is based on value member signature and datasource datatable also having value. 

    private void setComboBoxIndexChanged(RadDropDownList combobox, object selectedValue, Telerik.WinControls.UI.Data.PositionChangedEventHandler eventHandler)
        {
            if (eventHandler != null) { combobox.SelectedIndexChanged -= eventHandler; }
            if (int.TryParse(Convert.ToString(selectedValue), out int result))
            {       
                combobox.SelectedValue = result; //result having the value but assiging as null
                if (combobox.SelectedValue == null && combobox.Name == "cmbValveSize")
                {
                    DataTable dtValues = (DataTable)cmbValveSize.DataSource;
                   if(dtValues.Rows.Count > 0)
                    {

                    }
                   else
                    {

                    }
                }

 

if (eventHandler != null) { combobox.SelectedIndexChanged += eventHandler; }    

}

 So what is causing in version 2023.1.314  RadDropDownList? why we need to do subscribe and unsubscribe for Telerik 2023.1.314 but not for Telerik 2013.3.1.1127 . What is the change between2013.3.1.1127 and  2023.1.314.

When is the change and Which version will overcome the stackoverflow issue in Visual studio 2022 after  2013.3.1.1127.? - Since we need the latest Telerik version for VS 2022 application.

Unsubscribe and subscribe is not a solution it is affecting the other functionalities of project.

Please suggest what we can do apart from Unsubscribe and subscribe.

Thanks,

Maheswari

Maheswari
Top achievements
Rank 1
Iron
 answered on 26 Sep 2023
1 answer
3 views
Hello, 

I am trying to get the Location in Pixels of each of the Ranges Indicators  I defined in a RadTrackBar.
How can I make this happen?
Dinko | Tech Support Engineer
Telerik team
 answered on 26 Sep 2023
0 answers
3 views

The Drag & Drop service is working perfectly on my RadGridView until I add a GridViewTemplate to it with the intent to create a hierarchy view, after which the drag events aren't even fired anymore. Any ideas, please?

 

This is how I initialize the Drag & Drop behavior on my main DataGrid:

 

private void InitGrid()
        {             
            bt_addAttachment.Visible = false;
            BaseGridBehavior gridBehavior = this.radGridView1.GridBehavior as BaseGridBehavior;
            gridBehavior.UnregisterBehavior(typeof(GridViewDataRowInfo));
            gridBehavior.RegisterBehavior(typeof(GridViewDataRowInfo), new CustomRowGridBehavior());

            //handle drag and drop events for the grid through the DragDrop service
            RadDragDropService svc = this.radGridView1.GridViewElement.GetService<RadDragDropService>();
            svc.PreviewDragStart += svc_PreviewDragStart;
            svc.PreviewDragDrop += svc_PreviewDragDrop;
            svc.PreviewDragOver += svc_PreviewDragOver;        
        }

        //required to initiate drag and drop when grid is in bound mode
        private void svc_PreviewDragStart(object sender, PreviewDragStartEventArgs e)
        {
            e.CanStart = true;
        }

        private void svc_PreviewDragOver(object sender, RadDragOverEventArgs e)
        {
            if (e.DragInstance is GridDataRowElement)
            {
                e.CanDrop = e.HitTarget is SchedulerCellElement;
            }
        }

        private void svc_PreviewDragDrop(object sender, RadDropEventArgs e)
        {
            SchedulerCellElement schedulerCell = e.HitTarget as SchedulerCellElement;
            if (schedulerCell == null)
            {
                //DayViewAllDayHeader allDay = (this.radScheduler1.SchedulerElement.ViewElement as SchedulerDayViewElement).AllDayHeaderElement;
                //schedulerCell = SchedulerUIHelper.GetCellAtPoint(e.DropLocation, allDay.Children);
            }
            if (schedulerCell == null)
            {
                return;
            }
            GridDataRowElement draggedRow = e.DragInstance as GridDataRowElement;
            if (draggedRow == null)
            {
                return;
            }

            DataRowView dataRowView = draggedRow.Data.DataBoundItem as DataRowView;
            if (dataRowView != null)
            {
                if (draggedRow.GridControl.DataSource != null && typeof(BindingSource).IsAssignableFrom(draggedRow.GridControl.DataSource.GetType()))
                {
                    Appointment appointment = new Appointment();
                    appointment.Start = (DateTime)draggedRow.RowInfo.Cells["Start"].Value;
                    appointment.End = (DateTime)draggedRow.RowInfo.Cells["End"].Value;
                    //adjust start/end according to target cell
                    appointment.End = schedulerCell.Date.AddMinutes(appointment.Duration.TotalMinutes);
                    appointment.Start = schedulerCell.Date;
                    appointment.Summary = string.Empty + draggedRow.RowInfo.Cells["Summary"].Value;
                    appointment.Description = string.Empty + draggedRow.RowInfo.Cells["Description"].Value;
                    appointment.Location = string.Empty + draggedRow.RowInfo.Cells["Location"].Value;
                    appointment.StatusId = (int)draggedRow.RowInfo.Cells["StatusId"].Value;
                    appointment.BackgroundId = (int)draggedRow.RowInfo.Cells["BackgroundId"].Value;
                    //this.radScheduler1.Appointments.Add(appointment);

                    dataRowView.Row.Table.Rows.Remove(dataRowView.Row);
                }
                else
                {
                    throw new ApplicationException("Unhandled Scenario");
                }
            }
        }

 

Which is working perfectly until I add this piece of code to it:

 

///attachments sub-row initialization
GridViewTemplate attachmentsTemplate = new GridViewTemplate();
attachmentsTemplate.AutoGenerateColumns = false;            
attachmentsTemplate.HierarchyDataProvider = new GridViewEventDataProvider(attachmentsTemplate);

GridViewTextBoxColumn columnMainJobID = new GridViewTextBoxColumn();
columnMainJobID.TextAlignment = ContentAlignment.MiddleCenter;
columnMainJobID.FieldName = "MainJobID";
columnMainJobID.IsVisible = false;
attachmentsTemplate.Columns.Add(columnMainJobID);

radGridView1.Templates.Add(attachmentsTemplate);

 

Tibor
Top achievements
Rank 1
 updated question on 26 Sep 2023
1 answer
3 views

public void WriteToWordDocumentContinued(){

    m_document = new RadFlowDocument();
    m_editor = new RadFlowDocumentEditor(m_document);
    Section section = new Section(m_document);
    section.HasDifferentFirstPageHeaderFooter = true;
    section.PageMargins = new Telerik.Windows.Documents.Primitives.Padding(56.69, 94.49, 47.24, 66.14);
    m_document.Sections.Add(section);
    m_document.StyleRepository.AddBuiltInStyle(BuiltInStyleNames.GetHeadingStyleIdByIndex(1));


    Style MainTitle = new Style("MainTitle", StyleType.Character) { };
    MainTitle.CharacterProperties.UnderlinePattern.LocalValue = UnderlinePattern.Single;
    MainTitle.CharacterProperties.FontFamily.LocalValue = new ThemableFontFamily("Arial");
    MainTitle.CharacterProperties.FontSize.LocalValue = 32;
    MainTitle.CharacterProperties.FontWeight.LocalValue = System.Windows.FontWeights.Bold;
    m_document.StyleRepository.Add(MainTitle);

    Style HeaderParagraphStyle = new Style("HeaderParagraphStyle", StyleType.Paragraph) { };
    HeaderParagraphStyle.ParagraphProperties.LineSpacing.LocalValue = 16;
    HeaderParagraphStyle.ParagraphProperties.LineSpacingType.LocalValue = HeightType.Exact;
    HeaderParagraphStyle.ParagraphProperties.SpacingAfter.LocalValue = 0;
    HeaderParagraphStyle.ParagraphProperties.SpacingBefore.LocalValue = 0;

    Style HeaderTitleStyle = new Style("HeaderTitleStyle", StyleType.Paragraph) { };
    HeaderTitleStyle.ParagraphProperties.LineSpacing.LocalValue = 21.4;
    HeaderTitleStyle.ParagraphProperties.LineSpacingType.LocalValue = HeightType.Exact;
    HeaderTitleStyle.ParagraphProperties.SpacingAfter.LocalValue = 0;
    HeaderTitleStyle.ParagraphProperties.SpacingBefore.LocalValue = 0;
    HeaderTitleStyle.ParagraphProperties.TextAlignment.LocalValue = Alignment.Right;

    HeaderParagraphStyle.ParagraphProperties.TextAlignment.LocalValue = Alignment.Right;
    m_document.StyleRepository.Add(HeaderParagraphStyle);

    Style HeaderCharacterStyle = new Style("HeaderCharacterStyle", StyleType.Paragraph) { };
    HeaderCharacterStyle.CharacterProperties.FontFamily.LocalValue = new ThemableFontFamily("Arial");
    HeaderCharacterStyle.CharacterProperties.FontSize.LocalValue = 16;
    m_document.StyleRepository.Add(HeaderCharacterStyle);

    Style SubTitle = new Style("SubTitle", StyleType.Character) { };
    SubTitle.CharacterProperties.UnderlinePattern.LocalValue = UnderlinePattern.Single;
    SubTitle.CharacterProperties.FontFamily.LocalValue = new ThemableFontFamily("Arial");
    SubTitle.CharacterProperties.FontSize.LocalValue = 16;
    SubTitle.CharacterProperties.FontWeight.LocalValue = System.Windows.FontWeights.Bold;
    m_document.StyleRepository.Add(SubTitle);

    Style TopLines = new Style("TopLines", StyleType.Character) { };
    TopLines.CharacterProperties.FontFamily.LocalValue = new ThemableFontFamily("Arial");
    TopLines.CharacterProperties.FontSize.LocalValue = 16;
    TopLines.CharacterProperties.FontWeight.LocalValue = System.Windows.FontWeights.Bold;
    m_document.StyleRepository.Add(TopLines);

}

 

This is just minified version of the method where I am trying to instantiate my RadFlowDocument object. This method is being called in a parent class, even If I try to pass RadFlowDocument object from that class, it still causes the UI to break. 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Sep 2023
1 answer
6 views

Hello.

I am using RadRibbonBar (Main Form). I have multiple buttons in ribbon. Each button has different forms. I want dock them inside its Main Form on click. here is an example in below screenshot. I am unable to achieve the requirement.

Please note: The child form should dock exactly below the ribbon form. and also, the cross button (child form close button) should be present right after the tab (Child form name).

Please attach a zip file with a source code.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Sep 2023
1 answer
6 views

Hi,

I would like to know how we get the clicked bar AxisLabelElement?

What I mean, is when I click on the chart View certain bar I would like to read its Axis label.

Many thanks in advance

Omar

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Sep 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
ComboBox and ListBox (obsolete as of Q2 2010)
DropDownList
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
Menu
PropertyGrid
RichTextEditor
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
New Product Suggestions
GanttView
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
Panel
ContextMenu
Visual Studio Extensions
Spreadsheet
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
SpinEditor
CheckedDropDownList
MessageBox
StatusStrip
CheckedListBox
ShapedForm
Wizard
LayoutControl
TextBoxControl
SyntaxEditor
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
CAB Enabling Kit
TabbedForm
ScrollablePanel
GroupBox
WaitingBar
DataEntry
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
ScrollBar
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ColorDialog
DataFilter
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
Barcode
RibbonForm
TaskBoard
ColorBox
Styling
Callout
PictureBox
VirtualKeyboard
FilterView
DataLayout
NavigationView
Accessibility
CalculatorDropDown
Localization
TimePicker
ToastNotificationManager
ValidationProvider
FontDropDownList
BreadCrumb
ButtonTextBox
Licensing
LocalizationProvider
Dictionary
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Overlay
ToolbarForm
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
+? more
Top users last month
Bernd
Top achievements
Rank 5
Bronze
Bronze
Iron
kva
Top achievements
Rank 2
Iron
Iron
Iron
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Ruchika
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bernd
Top achievements
Rank 5
Bronze
Bronze
Iron
kva
Top achievements
Rank 2
Iron
Iron
Iron
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Ruchika
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?