Telerik Forums
UI for WinForms Forum
1 answer
524 views

Hello,

I am working an application where I need to open the different application forms in the same main window; in other words, I have created a dashboard where it contains a several buttons, each of them should open a specific form for example, The Employees, Products, Tasks, and etc. when I click on each of the buttons, It should show the other forms but in the same RAD form.

Form.TopLevel = False property isn't working so, How can I do it?

My project is a VB.NET 2019.

Thanks in advance for your continues assistance and cooperation,

Hani Mansour

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jun 2021
3 answers
653 views
I have a radchartview - Bar , conbined mode = stack. I wanted to set a fixed width for bar shown. Can i do that ?
Nadya | Tech Support Engineer
Telerik team
 answered on 23 Jun 2021
1 answer
1.9K+ views

Hi.

After a date is picked I want to delete it and set the value to null on the data bound item.

The NullableValue is set to null/Nothing:

 Me.DateRadDateTimePicker.NullableValue = Nothing

The Value property is bound to an entity's nullable date field:

 Me.DateRadDateTimePicker.DataBindings.Add(New System.Windows.Forms.Binding("Value", Me.binder, "Date", True))

If I select the date text and delete it, the entity still has a 01/01/0001 date value. However, the null text correctly displays in the picker.

I've even tried to manually set the null date (in three different ways!) based on the empty text but to no avail:


Dim dtp As RadDateTimePicker = ctrl
If dtp.Text = "" Then
  dtp.NullableValue = Nothing
  dtp.DateTimePickerElement.SetToNullValue()
  dtp.Value = Nothing
End If

 

What am I missing?

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Jun 2021
2 answers
383 views

I'm getting the following error every time I load any project in VS 2019 (16.9.4)

"Visual Studio stopped responding for 12 seconds.  Disabling the extension Progress Telerik WinForms Converter 2021.2.505.1 might help."

See attached image of error.

How to resolve?

Cheers, Rob.

EDIT: for any project, WPF, UWP, etc. (not just WinForms)

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
 updated answer on 23 Jun 2021
1 answer
109 views

hi,

i use a radgridcolumn chooser related to a radgrid with 2019 radtheme

is there any way to change the font used programatically

thx a lot...

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jun 2021
9 answers
389 views
Hello

I have version Q3 2010 for winforms
But I couldn't find RadWizard Control  in Toolbox....

let me know Radwizard is Avoilable for Q3 2010 or not....?

Thanks
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 21 Jun 2021
2 answers
133 views

I add datapoints to the RadChartView using CategoricalDataPoints. The values can be quite large and then I get the following error:

Value was either too large or too small for a decimal.

 

Then I did this test:

radChartView->Series[0]->DataPoints->Add(gcnew Telerik::Charting::CategoricalDataPoint(Decimal::ToDouble(Decimal::MaxValue), 0));

I still get the exception: Value was either too large or too small for a decimal.

 

What is the max value that can be set?

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Jun 2021
2 answers
118 views

Hi, just a question, it is feasible to use a custom tokenizer for the autocompletebox in order to compose the text blocks?

My tokenizer currently supports a vast variety of "quoted" parts, escape sequences and separators thus would be difficult to use just separators, because if separator is , then the quoted text "Hello, World", will be considered 2 blocks instead of 1.

Best Regards

Andrea

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Jun 2021
5 answers
714 views

Hi

In winforms, is it possible to have the little "eye" on the right of a RadTextbox to let the user sneak the password?

I have found https://www.telerik.com/support/kb/winforms/tools/details/showpassword-button-for-radtextbox-with-textmode-password?_ga=2.217538326.1876351049.1570721637-455345866.1542726605 which is under winforms but seems to apply to ASP.Net/Ajax.

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Jun 2021
1 answer
84 views

Hi ,

I am trying to create a range bar series . In that data points should be alternating colors red and yellow only . I found one from chart grid : https://docs.telerik.com/devtools/winforms/controls/chartview/features/chart-grid but not for data points . Are there any properties to achieve this?

 

Code attached:


private void LoadBarChart()
        {

            this.radChartView1.AreaType = ChartAreaType.Cartesian;
            this.radChartView1.ChartElement.AngleTransform = 90;
            RangeBarSeries rangeBarSeries = new RangeBarSeries("End Time", "Start Time", "Summarization Date");
            rangeBarSeries.CombineMode = ChartSeriesCombineMode.None;

            this.radChartView1.ChartElement.View.Margin = new Padding(40, 40, 40, 100);

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


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

            rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 4, DateTime.Now.TimeOfDay.TotalMinutes + 2, "5/19/2021"));

            rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes - 89, DateTime.Now.TimeOfDay.TotalMinutes - 100, "5/20/2021"));
            rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 7, DateTime.Now.TimeOfDay.TotalMinutes + 5, "5/20/2021"));

            rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes - 79, DateTime.Now.TimeOfDay.TotalMinutes - 90, "5/21/2021"));
            rangeBarSeries.DataPoints.Add(new RangeDataPoint(DateTime.Now.TimeOfDay.TotalMinutes + 7, DateTime.Now.TimeOfDay.TotalMinutes + 5, "5/21/2021"));

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


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

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

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


            CategoricalAxis horizontalAxis = new CategoricalAxis();

           // horizontalAxis.Title = "Summarization Days";
            horizontalAxis.ClipLabels = false;
            horizontalAxis.LabelRotationAngle = -90;
            horizontalAxis.LabelFitMode = AxisLabelFitMode.Rotate;
            horizontalAxis.BackColor = Color.Red;
            horizontalAxis.PlotMode = AxisPlotMode.BetweenTicks;
            horizontalAxis.LabelFormatProvider = new MyFormatProviderX();
            rangeBarSeries.HorizontalAxis = horizontalAxis;

            ChartTooltipController tooltipController = new ChartTooltipController();
            tooltipController.DataPointTooltipTextNeeded += tooltipController_DataPointTooltipTextNeeded;
            this.radChartView1.Controllers.Add(tooltipController);

           // rangeBarSeries.ShowLabels = true;
            this.radChartView1.Series.Add(rangeBarSeries);
            radChartView1.ShowToolTip = true;
            rangeBarSeries.CombineMode = ChartSeriesCombineMode.None;

    

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

            LinearAxis verticalAxis = radChartView1.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 = this.radChartView1.GetArea<CartesianArea>();
            area.ShowGrid = true;

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


        private void tooltipController_DataPointTooltipTextNeeded(object sender, DataPointTooltipTextNeededEventArgs e)
        {
            RangeDataPoint dp = e.DataPoint as RangeDataPoint;
            if (dp != null)
            {
                e.Text = dp.High + " " + dp.Low;
            }
        }

    }
}

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 16 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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?