Telerik Forums
UI for WinForms Forum
1 answer
111 views

Hi ,

I am trying to create a page with 3 columns. Date and Percent are the first 2 columns . The 3rd column will be a range bar chart where the time span across 24 hours will be in x-axis (orientation to the top) and the date again will be on the left (we can hide the label) . It might not necessarily be a gridview , but if it is that would be great . Let me attach the mock , I tried to do the 2 columns separately and the chart separately but wanted to integrate it as a single grid . 

 

Much appreciated for the help in advance.

Sample Code that i did to achieve the chart (Grid view is pretty straight forward and ignored in the below code):

 


  private void LoadBarChart()
        {

            this.radChartView1.AreaType = ChartAreaType.Cartesian;
            this.radChartView1.ChartElement.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;


            this.radChartView1.Series.Add(rangeBarSeries);

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


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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Jun 2021
4 answers
306 views

I am trying to implement a RangeBarSeries chart where time in y axis and date in x axis . The time here will be total minutes ranged against.

Example 1876 to 18:30 but only for label purpose and not for actual calculation.

 

 

Image 2

 

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

I created  ItemElementBlank class that is used for two separate types in the property editor. I want to display no text next to the property label. It works properly when properties are collapsed. When one of the properties are expanded seems that my display element is used in the wrong row ("OdstÄ™p linii" instead of "Alarm"). I coloured the control to a yellow gradient for a better view.

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

Greetings,

I've been using Rad controls  for a long time in my projects ( including mostly buttons, labels and gridview ) without facing noticeable GUI issues , though I sometimes face an Anti-aliasing issue of controls in all of my forms ( in a single project), and I have no idea what's the matter.

More surprising is the wired solution I found out to the issue and that's to add a random new rad control to one of the forms, such as  a button or a label. I attached 2 pictures that can illustrate the issue and the solution I described :

"Before.jpg" illustrates a rad button with "Tahoma" font; there is Anti-aliasing issue (sharp edges of letters in Text)

"After.jpg" illustrates a rad button with "Tahoma" font and a fresh new rad button added to the form;  there is no Anti-aliasing issue

 

P.S :

1- The issue involves not just the rad button, but also labels, gridviews (and maybe some other rad controls too).

2- Font  can't be the cause of the issue as I've tried using different fonts and it didn't make any difference.

3- I don't manually (dynamically) set or unset the Anti-aliasing feature of the rad controls

4- The newly added Rad control must be present (and visible!) in one of the forms  to solve the issue, otherwise the issue remains.

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Jun 2021
5 answers
139 views

Hello,

I have a project where I'd like to use Nodes to deliver an interface where users can link up different nodes to create something called a 'rule'. I've found several options out there with Unity's nodes being the most visually appealing. Does Telerik have anything like this? I wasn't able to find anything but thought I'd ask.

I've attached a screenshot of an open source node framework based on Unity's node system.

 

Thanks,

Michael

Nadya | Tech Support Engineer
Telerik team
 answered on 08 Jun 2021
1 answer
97 views

I found a bug :

VS 2019.16.10.0 / Telerik 2021.1.218.1

strangely, I had functionalities that disappeared in my grid "group" and i found how to reproduce the problem :

In radgrid, from designer :

1) open property builder and add columns.

2) get a column and add it to group panel.

3) uncheck group panel check (example because must in group but user must don't touch it and can't add)

4) in columns, column added to group, uncheck "isVisible".

5) bind datas for example.

run project : Ok works.

now Open again property builder, rename not group column header, click Ok.

save, run project : group disappeared, if you go in designer group descriptors : all is empty.

 

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

I've got an issue with the way loadlayout works with the RadGridView.  My plan is when the user closes the screen the layout will be saved to an xml file.  Saving the xml works great.  On subsequent loads of the program if a new column has been added to the RadGridView since the layout was last saved when the loadlayout method is called the new column is lost entirely.

Does anyone already have a solution for this?  My work around will be to examine the xml first before loading to try and amend it before loading but i'm not sure if i'm missing something obvious?

 

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jun 2021
1 answer
139 views
Hello Team,

           We are using the Telerik RadSpellchecker for RadTextbox, while typing the wrong text in "Lowercase" the radspellchecker checks the mistake and lists the correct spelling on the suggestions but it does not work on the "Uppercase". We tried with the answers on the telerik but no luck. Let us know if we need to change anything on the property. Video link mentioned below for your reference.

Video link : https://ttprivatenew.s3.amazonaws.com/pulse/suganya-gmail/attachments/17109072/TinyTake07-06-2021-01-26-42.mp4
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jun 2021
5 answers
789 views

L.S.

I am using OpenEdge ABL version 12.2.4.

I am aware of the default way of using merge fields (https://docs.telerik.com/devtools/winforms/controls/richtexteditor/features/mail-merge/mail-merge).

In ABL, all our custom classes by definiton inherit from Progress.Lang.Object. Unfortunately, it is not possible to use an ABL class as the argument class in the definition of a generic class. 

This works of course c#: List<Employee> employees = new List<Employee>()

In ABL it would look like this:

DEFINE VARIABLE employees AS "List<Employee>" NO-UNDO.
employees = NEW "List<Employee>"().

However, this does not compile.

So, I need a way to access the individual Mail Merge fields.

 

Any support is appreciated,

Regards,

Will


Dimitar
Telerik team
 answered on 07 Jun 2021
1 answer
100 views

Hi,

when i try to deploy an application  using ilmerge to combine telerik dll files and the exe one

the application is working very well except the form that contain a radbutton with an svg  image file ;or radimage control with an svg file the form does not enable to open ?

any help please ?

 

thank you

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 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?