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