Telerik Forums
UI for WinForms Forum
1 answer
126 views

Hello,

I want to make editor for editing function list, something like screenshot below. I would like to ask for an advice, what's the best approach to do this. I have idea to use GridView with self referencing, using some background class for representation of this structure, and massive cell parsing/formatting/validating for handling second column with parameters, validating different types of parameters, coloring of invalid values etc. Or, it's just two level structure, is it better to use "normal" hierarchy, main level for functions, and second level for different parameter? I haven't tried anything yet, just asking for advice for the best approach, I think it will take more time to do this.

And second question, I was playing a little with hierarchies some time ago, and most scenarios needed data binding for correct hierarchy. Is it possible to do self referencing without data binding?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Dec 2022
1 answer
124 views

On a brand new Winforms project,

 

1/ Added 1 RadDock, Dock = Fill

2/ In RadDock Advanced Layout Designer, Add several toolwindows using Dockfill new ToolWindow

3/ Save and close Designer

4/ Run Project

When any toolwindow is moved to attempt to dock it freezes with the compass showing but no windows can be moved or docked. Attached image shows frozen state. No errors or anything raised

This is in Windows 11 with net6.0. Is this a bug or am I doing something wrong?

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2022
1 answer
924 views

Hi,

I'm getting weird / unexpected behaviour when using the masked edit box configured to handle IP Addresses.

So using the latest Demo Application, I open up the Masked Edit Box, and in the IP edit box I type in 11.22.33.44

I then double click and highlight the 44 part, and type 6 to replace the 44 with a single 6, however the following is displayed

After clicking on OK this then changes to show the ip address as 11.22.33.255 It seems that clicking on 6 does not replace the 44 but gets inserted at the start of the element. Is there a workaround for this behaviour ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2022
1 answer
143 views

Winforms, c#, version 2022.3.1109.40,

I know it must be me, but I'm testing gradient fill on a radpanel, but theres no change in appearance at either design or run time

Here's my extract from the designer file. GradientFill is set to linear which is the default.

private void InitializeComponent()
    {
      this.radPanel2 = new Telerik.WinControls.UI.RadPanel();
      ((System.ComponentModel.ISupportInitialize)(this.radPanel2)).BeginInit();
      this.SuspendLayout();
      //
      // radPanel2
      //
      this.radPanel2.Location = new System.Drawing.Point(112, 57);
      this.radPanel2.Name = "radPanel2";
      this.radPanel2.Size = new System.Drawing.Size(218, 107);
      this.radPanel2.TabIndex = 1;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(241)))), ((int)(((byte)(79)))));
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(238)))), ((int)(((byte)(155)))), ((int)(((byte)(64)))));
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(74)))), ((int)(((byte)(228)))), ((int)(((byte)(243)))));
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).NumberOfColors = 4;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).GradientStyle = Telerik.WinControls.GradientStyles.Linear;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).PaintUsingParentShape = false;
      ((Telerik.WinControls.Primitives.FillPrimitive)(this.radPanel2.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(244)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
      //
      // Form1
      //
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ClientSize = new System.Drawing.Size(800, 450);
      this.Controls.Add(this.radPanel2);
      this.Name = "Form1";
      this.Text = "Form1";
      ((System.ComponentModel.ISupportInitialize)(this.radPanel2)).EndInit();
      this.ResumeLayout(false);

    }

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Dec 2022
1 answer
1.8K+ views

Hello,

I have had to reinstall all Visual Studio versions after some strange behavior, installation was somehow corrupted, VS installers haven't seen any VS versions installed (but they was working almost normally), so I have had to reinstall it, uninstall it manually by InstallCleanup.exe first, and then install VS2019 and VS2022 again. So much for context.

I have installed Telerik for WinForm then and I don't see any Telerik controls in toolbox. I reinstalled Telerik twice, also tried to use Toolbox Configurator, selected .NET4.0 version, but without success. I have the same problem on both VS2019 and 2022. Can you help me please?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Dec 2022
0 answers
137 views

        public void pastPanelInit()
        {

            var threadParameters = new ThreadStart(initSpreadSheet);
            var thread2 = new Thread(threadParameters);
            thread2.SetApartmentState(ApartmentState.STA);
            thread2.Start();
            //thread2.Join();

        }


        private void initSpreadSheet()
        {

            if (pastTabCalender.InvokeRequired)
            {
                pastTabCalender.Invoke(new Action(() => initSpreadSheet()));
            
            }
            else
            {
                spreadSheet = new RadSpreadsheet();
                spreadSheet.Dock = DockStyle.Fill;
                spreadSheet.Anchor = AnchorStyles.Top | AnchorStyles.Left;
                spreadSheet.Workbook.Worksheets.Add();
                pastTabCalender.Controls.Add(spreadSheet);
            }
        }

Im having some trouble adding a spreadsheet to my RadPageViewPage since the spreadsheet requires to be on a thread. This still gives me 'Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.'.

Is there anyone that could explain what im doing wrong here? Thanks.

 

Edit. Updated the code a bit and this gives me that it requires to be on the STA thread. Its something im not understanding with these threadings in c#.

Benjamin
Top achievements
Rank 1
 updated question on 11 Dec 2022
1 answer
133 views

Hey, how can I skip the ViewCellFormatting event while the grid is getting new data?

Maybe there's some property I can check before continuing formatting? I have two interdependent grids and would like to "pause" this event whenever any of them is reloading...

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Dec 2022
1 answer
132 views

I am Using pdfExporter from RadDataGrid View to generate pdf.

How to wrap text of cells/columns      in exported pdf.                using VB.NET not C-Sharp                                                                                                                                                                                                                                                                                                                                                                                                                                        

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Dec 2022
1 answer
125 views

Hi

How to remove or edit "Creator Telerik PdfProcessing" text before exporting DGV to pdf from PDF Properties.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Dec 2022
1 answer
87 views

I use telerik UI for WinForms project(not WPF) How to prevent auto close of RadContextMenu when user clicks on item on it? Now, after mouse click on any item, it closes. In WinForms there is ContextMenuStrip.AutoClose property to prevent autoclosing. Is there analogue of the property on Telerik RadContextMenu?

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Dec 2022
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)
Chart (obsolete as of Q1 2013)
Form
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?