Telerik Forums
UI for WinForms Forum
1 answer
479 views

Good morning
I wanted to follow the tutorial to make a RadButtonTextBox password control with a button to the right of the textbox to show the password.
I found a tutorial but can't find how to add the image. The tutorial page is this

https://docs.telerik.com/devtools/winforms/knowledge-base/create-password-textbox

, can someone please tell me how to add the image?
Thanks so much
Fabrizio

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Jul 2021
1 answer
137 views

Please how to Load Microsoft word content including boarder around header text and style into a radrichtextbox. I tried loading from a folder to radrichtextbox. It loads but removes the boarder around header text and does not maintain line spacing. I want it to maintain exactly what I have in the word document. Below is my attempt which loaded but did not adapt header text border style and linespace. After loading the attached file to RadRichTextBox it does not display the double boarder around the text in the header.

 Dim provider2 As DocxFormatProvider = New DocxFormatProvider()
            Using inputStream As FileStream = File.OpenRead(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\duk\Dictionary" & txtDirCount.Text & ".docx")
                Me.RadRichTextEditor1.Document = provider2.Import(inputStream)
            End Using
            Dim provider As TxtFormatProvider = New TxtFormatProvider()

            RadRichTextEditor1.LayoutMode = DocumentLayoutMode.Paged
            'Dim sectionColumnCollection As SectionColumnCollection = New SectionColumnCollection(2, 30, False) 'Without line in the middle
            Dim sectionColumnCollection As New Telerik.WinForms.Documents.Model.SectionColumnCollection(2, 75, True) ' With line in the middle
            Dim editor As RadDocumentEditor = New RadDocumentEditor(RadRichTextEditor1.Document)
            editor.ChangeSectionColumns(sectionColumnCollection)
            Dim header As New Header()

Peshito
Telerik team
 answered on 05 Jul 2021
2 answers
200 views
Hello! I am trying to upload a beam from a recursive table with the following fields:
ID; NAME; ID_FK; TYPE;
1;   CARLOS NULL  0
2;    PETER   NULL  0
3;    JHON     1          1
4;    MARY     1          1

Now I would like it to be loaded according to the relationship, how could I do it?
Nadya | Tech Support Engineer
Telerik team
 answered on 02 Jul 2021
2 answers
209 views
Hello

please can you send me a sample to illustrate how to use radvirtualgrid to add a new row with an enter key to move to next column in vb.net
thank you
Nadya | Tech Support Engineer
Telerik team
 answered on 02 Jul 2021
1 answer
242 views

Hi

Please Help

Language: VB.Net (VS2017)

Telerik Version: 2017.3.1017

I have a RadGridView and two RadRichTextEditors in a form. In the printout, is it possible to display the texts from RadRichTextEditors just after the RadGridView printed? I mean, it should print on Report Footer. I don't have Telerik Reports License, so using RadPrintDocument. I am able to print Customized Headers & Footers with GridView data. Sample document attached.

Thanks in advance.

Arun

Todor
Telerik team
 answered on 01 Jul 2021
1 answer
71 views

Hi Team,

As per SDK samples, we have downloaded ERP demo application for WinForms, there i have seen TelerikProviderForGoogleAnalytics .dll usage..

Can you please guide us how to set up "Google Analytics Dashboard" with your ERP demo application as you shown in https://docs.telerik.com/devtools/winforms/analytics/google-analytics-integration . We understand code base, but not able to understand the 

dashboard setup.

public void CreateGoogleTracker()
        {
            var trackerManager = new TrackerManager(new PlatformInfoProvider());
            tracker = trackerManager.CreateTracker("UA-111455-55");
            tracker.AppName = "WinForms ERP";
        }

 

 

Or Can you send me sample Analytics application with End to end use cases.
I have gone through link https://docs.telerik.com/devtools/winforms/analytics/analytics-support but didn't see much information for dash board setup.. 

 

Regards,

SrinivasR

Nadya | Tech Support Engineer
Telerik team
 answered on 01 Jul 2021
2 answers
152 views

Hi all,

I'm reading the documentation page about using Google Analytics to save the tracking data.

Here: https://docs.telerik.com/devtools/winforms/analytics/google-analytics-integration

Question: why not an example using the official Google.Apis.Analytics? 

Instead, there's a reference to a third-party library, which has few commits and downolads.

Why this choice? Is there something I'm missing?

I think everyone would be more comfortable in adopting the official way, if possible.

Thanks.

Nadya | Tech Support Engineer
Telerik team
 answered on 01 Jul 2021
2 answers
1.0K+ views

If I use a regular MS Text box I can use textbox.lines.count()  but this is invalid when using either of the Telerik textbox controls.

Is there a way to get the Number of Lines of a Textbox or TextboxControl?

Sample Code used with MS TextBox control

var lines = txtEQCodes.Lines.Count();
                lines -= String.IsNullOrWhiteSpace(txtEQCodes.Lines.Last()) ? 1 : 0;

This code does not work with Telerik textbox Controls.

I get compile errors on the Lines.Count() and Lines.Last() properties.

I am using telerik winforms.ui version 2021.2.615.40

Thanks,

 

Roger

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Jun 2021
1 answer
172 views

I have a button and I'd like it to look the same way as the title bar close button does.

How can I apply a specific style to a control?

The only thing I tried is to access theme information, but it is really complicated as there are multiple levels of nesting and derivation of settings etc. I think, that there should be easier way to do this.

      var theme = Telerik.WinControls.ThemeResolutionService.GetTheme(TelerikSkinAdapter.GetThemeName("MySkin"));
      foreach (var group in theme.StyleGroups)
        foreach (var registration in group.Registrations)
          System.Diagnostics.Debug.WriteLine($"{registration.ControlName} {registration.ControlType} {registration.ElementName} {registration.ElementType}");

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Jun 2021
6 answers
161 views

hi,

I am currently having a radgridview with 3 columns in which the 3rd column is a chart type custom column. i have set a minimum width to it which leads to scroll bar on smaller displays. Now , if i scroll across a few times the data in the chart disappears. 

Is there any event where i can write code to prevent from happening ? Code below updated


public RadForm1()
        {
            InitializeComponent();

            this.radGridView1.Columns.Add("Column1");
            this.radGridView1.Columns.Add("Column2");
            ChartColumn customColumn = new ChartColumn("Chart column");
            this.radGridView1.Columns.Add(customColumn);
            this.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

            for (int i = 0; i < 10; i++)
            {
                this.radGridView1.Rows.Add(i, i, i);
            }
            this.radGridView1.TableElement.RowHeight = 200;
            this.radGridView1.AllowAddNewRow = false;
        }

        public class ChartCell : GridDataCellElement
        { 
            public ChartCell(GridViewColumn column, GridRowElement row) : base(column, row)
            {
            }

            RadChartElement chart = new RadChartElement();
 
            protected override void CreateChildElements()
            {
                base.CreateChildElements();
                LoadBarChart();
                this.Children.Add(chart);
            }

            private void LoadBarChart()
            {
                chart.View.AreaType = ChartAreaType.Cartesian; 
                chart.AngleTransform = 90;
                RangeBarSeries rangeBarSeries = new RangeBarSeries("End Time", "Start Time", "Summarization Date");

                rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 14, DateTime.Now.TimeOfDay.TotalMinutes + 10, "6/8/2021"));
                rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 7, DateTime.Now.TimeOfDay.TotalMinutes + 5, "6/8/2021"));
                rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 4, DateTime.Now.TimeOfDay.TotalMinutes + 2, "6/8/2021"));

                rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 30, DateTime.Now.TimeOfDay.TotalMinutes + 10, "6/7/2021"));
                rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 7, DateTime.Now.TimeOfDay.TotalMinutes + 5, "6/7/2021"));

                CategoricalAxis horizontalAxis = new CategoricalAxis();

                //horizontalAxis.Title = "Summarization Days";
                horizontalAxis.ClipLabels = false;
                horizontalAxis.LabelRotationAngle = -90;
                horizontalAxis.LabelFitMode = AxisLabelFitMode.Rotate;

                horizontalAxis.PlotMode = AxisPlotMode.BetweenTicks;
                rangeBarSeries.HorizontalAxis = horizontalAxis;

                chart.View.Series.Add(rangeBarSeries);

                rangeBarSeries.VerticalAxis.LabelFormatProvider = new MyFormatProvider();
                //rangeBarSeries.VerticalAxis.Title = "Time of the day";
                rangeBarSeries.VerticalAxis.ClipLabels = false;
                rangeBarSeries.VerticalAxis.LabelRotationAngle = -45;
                rangeBarSeries.VerticalAxis.LabelFitMode = AxisLabelFitMode.Rotate;

                LinearAxis verticalAxis = chart.View.Axes.Get<LinearAxis>(1);
                verticalAxis.Minimum = 0; //Minutes 0:00
                verticalAxis.Maximum = 1380; //Minutes 23:00
                verticalAxis.MajorStep = 60; //60 minutes in an hour

                CartesianArea area = chart.View.GetArea<CartesianArea>();
                area.ShowGrid = true;

                CartesianGrid grid = area.GetGrid<CartesianGrid>();
                grid.DrawVerticalStripes = true;
                grid.DrawHorizontalStripes = false;
            }

            protected override void SetContentCore(object value)
            {
                base.SetContentCore(value);
                //you can synchronize the chart data points according to the cell value if necessary 
            }
            
            protected override Type ThemeEffectiveType
            {
                get
                {
                    return typeof(GridDataCellElement);
                }
            }

            public override bool IsCompatible(GridViewColumn data, object context)
            {
                return data is ChartColumn && context is GridDataRowElement;
            }
        }

        public class ChartColumn : GridViewDataColumn
        {
            public ChartColumn(string fieldName) : base(fieldName)
            {
            }

            public override Type GetCellType(GridViewRowInfo row)
            {
                if (row is GridViewDataRowInfo)
                {
                    return typeof(ChartCell);
                }
                return base.GetCellType(row);
            }
        }

        public class MyFormatProvider : IFormatProvider, ICustomFormatter
        {
            public object GetFormat(Type formatType)
            {
                return this;
            }

            public string Format(string format, object arg, IFormatProvider formatProvider)
            {
                int totalminutes = Convert.ToInt32(arg);

                TimeSpan timeSpan = TimeSpan.FromMinutes(totalminutes);

                return timeSpan.ToString(@"hh\:mm");
            }
        }


Nadya | Tech Support Engineer
Telerik team
 answered on 29 Jun 2021
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?