Telerik Forums
UI for WinForms Forum
9 answers
205 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
17 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
Telerik team
 answered on 18 Jun 2021
2 answers
9 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
Telerik team
 answered on 18 Jun 2021
5 answers
44 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
Telerik team
 answered on 18 Jun 2021
1 answer
13 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
Telerik team
 answered on 16 Jun 2021
1 answer
9 views

Hi ,

I am defining the vertical axis' set of axis labels by defining min max and major step . Even though i set it , it takes some non relevant values like 100,200....1128.5 etc before starting from 0,60,120... Code attached:


            rangeBarSeries.VerticalAxis.LabelFormatProvider = new MyFormatProvider();            
            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

   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
Telerik team
 answered on 16 Jun 2021
2 answers
11 views

Hi,

I need to change the height of popup as shown in attached image file, when the dropdown arrow is clicked and popup is shown along with "Close" button.

I have implemented this control exactly as per CustomDropDownList code mentioned in the link:

https://www.telerik.com/support/kb/winforms/dropdown-checkeddropdown-and-list/details/multi-select-drop-down-list

Please help me with the modification needed. 

I do not want to use AutoSize, as the DataSource of dropdown is huge.

Thanks

Nishant

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jun 2021
1 answer
9 views

Hi ,

I am trying to hide the last label in y-axis which is kind of inverted but i have attached the image and code for the same


        

private void LoadBarChart() { chart.View.AreaType = ChartAreaType.Cartesian; chart.AngleTransform = 90; RangeBarSeries rangeBarSeries = new RangeBarSeries(); 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.ClipLabels = false; horizontalAxis.ShowLabels = false; horizontalAxis.PlotMode = AxisPlotMode.BetweenTicks; rangeBarSeries.HorizontalAxis = horizontalAxis; chart.View.Series.Add(rangeBarSeries); rangeBarSeries.VerticalAxis.LabelFormatProvider = new MyFormatProvider(); 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 = 1440; //Minutes 23:00 verticalAxis.MajorStep = 60; //60 minutes in an hour verticalAxis.LastLabelVisibility = AxisLastLabelVisibility.Hidden; }

 

    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");
        }
    }

    LinearAxis verticalAxis = chart.View.Axes.Get<LinearAxis>(1);
            verticalAxis.Minimum = 0; //Minutes 0:00
            verticalAxis.Maximum = durationofdayDST; //Minutes 23:00
            verticalAxis.MajorStep = 60; //60 minutes in an hour
            verticalAxis.LastLabelVisibility = AxisLastLabelVisibility.Hidden;
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jun 2021
1 answer
15 views

Is it possible to add your own operators to the list of valid radvalidatorprovider's own operators.   I have a requirement for two operators:

 

1.  See if a value is already contained with a Dictionary object, if so the operator should cause the validation to fail.

2. See if a folder path specified in a textboxcontrol exists on dick.  If not, then the validation should fail.

 

I know I could do this in code, and simply display a dialog stating the error, but I want consistent validation reporting throughout my application.

Nadya
Telerik team
 answered on 16 Jun 2021
1 answer
14 views

Greetings,

Is there a way to hide some of the items of the radgridview filter box, or not showing the filter icon at all (marked with red circles in the attached picture) ?

 

Dess | Tech Support Engineer, Principal
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
Calendar, DateTimePicker, TimePicker and Clock
ChartView
ComboBox and ListBox (obsolete as of Q2 2010)
Buttons, RadioButton, CheckBox, etc
Chart (obsolete as of Q1 2013)
DropDownList
ListView
PageView
Form
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
Carousel
ListControl
Panorama
PdfViewer and PdfViewerNavigator
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
AutoCompleteBox
VirtualGrid
Label
ContextMenu
Panel
Visual Studio Extensions
Documentation
TitleBar
SplitContainer
DesktopAlert
Rotator
TrackBar
ProgressBar
Map
SpinEditor
StatusStrip
MessageBox
ShapedForm
CheckedListBox
CheckedDropDownList
LayoutControl
CAB Enabling Kit
CollapsiblePanel
Spreadsheet
Conversational UI, Chat
Wizard
ScrollablePanel
TextBoxControl
WaitingBar
BrowseEditor
DateTimePicker
GroupBox
TabbedForm
Tools - VSB, Control Spy, Shape Editor
ImageEditor
DataEntry
Gauges (RadialGauge, LinearGauge, BulletGraph)
FileDialogs
ScrollBar
ApplicationMenu
ColorDialog
RangeSelector
DataFilter
CardView
SyntaxEditor
BindingNavigator
PopupEditor
Barcode
ColorBox
Callout
CalculatorDropDown
DataLayout
VirtualKeyboard
WebCam
ValidationProvider
BreadCrumb
FontDropDownList
PictureBox
RibbonForm
Styling
TimePicker
ToastNotificationManager
Accessibility
ButtonTextBox
Licensing
Localization
Rating
Security
Separator
SparkLine
TimeSpanPicker
+? more
Top users last month
Psyduck
Top achievements
Rank 4
Bronze
Iron
Iron
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
Valery
Top achievements
Rank 1
Iron
Peter
Top achievements
Rank 1
Veteran
Iron
George C.
Top achievements
Rank 2
Iron
Veteran
Top users last month
Psyduck
Top achievements
Rank 4
Bronze
Iron
Iron
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
Valery
Top achievements
Rank 1
Iron
Peter
Top achievements
Rank 1
Veteran
Iron
George C.
Top achievements
Rank 2
Iron
Veteran