private static void FixTheme(Theme theme)
{
// try to add registration
var sg = theme.FindStyleGroup(typeof(RadPropertyGrid).FullName);
sg.Registrations.Add(new MyStyleRegistration
{
RegistrationType = "ElementTypeControlType",
ElementType = "Telerik.WinControls.RootRadElement",
ControlType = typeof(ExRadPanel).FullName
});
sg.Registrations.Add(new MyStyleRegistration
{
RegistrationType = "ElementTypeControlType",
ElementType = typeof(RadPanelElement).FullName,
ControlType = typeof(ExRadPanel).FullName
});
var copy = sg.PropertySettingGroups.ToArray();
foreach (var settingGroup in copy)
{
if (settingGroup.Selector is null)
continue;
if (settingGroup.Selector.Value != nameof(PropertyGridHelpElement))
continue;
{
// trying this ...
var newSg = new PropertySettingGroup
{
Selector = new ElementSelector(settingGroup.Selector.Type, nameof(RadPanelElement)),
BasedOn = settingGroup.BasedOn
};
newSg.Repositories.AddRange(settingGroup.Repositories);
newSg.PropertySettings.AddRange(settingGroup.PropertySettings);
sg.PropertySettingGroups.Add(newSg);
}
{
// ... and this
var newIi = new PropertySettingGroup
{
Selector = new ElementSelector(ElementSelectorTypes.TypeSelector, typeof(FillPrimitive).FullName),
BasedOn = settingGroup.BasedOn
};
newIi.Repositories.AddRange(settingGroup.Repositories);
newIi.PropertySettings.AddRange(settingGroup.PropertySettings);
sg.PropertySettingGroups.Add(newIi);
}
}
}
public class MyTypeConverter : TypeConverter
{
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
if (destinationType.Equals(typeof(Image)))
return true;
return base.CanConvertTo(context, destinationType);
}
public override object ConvertTo(ITypeDescriptorContext context,
System.Globalization.CultureInfo culture, object value, Type destinationType)
{
if (destinationType.Equals(typeof(Image)))
{
WebRequest request = System.Net.WebRequest.Create(value + "");
using (var response = request.GetResponse())
{
using (var stream = response.GetResponseStream())
{
return Bitmap.FromStream(stream);
}
}
}
return base.ConvertTo(context, culture, value, destinationType);
}
}
Dear sirs,
I hope this email finds you well and healthy.
I am developing an application using Telerik WinUI and my question is: What tool made the side bar used in Progress Telerik UI for WinForms Interface in the demo application, i just like the way it works i mean, all the forms are available and are opening in the same window, without having to open each form individually.
Thank you very much for your kind help and assistance,
Hani Mansour
Hi,
We have problem identifying objects on Telerik grids, from UI automation tool. Quite many screens in our application are using Telerik grids. We now are trying UI automation using Ranorex. Most parts are going good, except Telerik grid! Basically, objects inside the grid are not identified as they should.
Found similar discussion at https://www.telerik.com/forums/635401-gridview and we made change as per suggestion, by introducing "EnableCodedUITests =
true
". However, no good lunch, it worked only partially.
For ex, from the screen below, would like to access value of 'Status' from first row.
Expectation would be, Row0/1(based on indexing logic), column 'Status' and text/value "Arrived". However, it doesn't work so! Ranorex thinks, its something to discuss with Telerik. They asked to test it using 'inspect.exe' tool from win10 sdk. We tried and got same result. Below is the screenshot of result form inspect.exe
Row number is OK, but not column name is identified.. also, Value/Text is empty.
If inspect.exe cannot detect, heard no other automation tool in market can!
By the way, it works well with win.net grids.
Here is the sample of inspection on win.net grid... Column name and cell values are identified very well.
How can this be fixed for Telerik grid?!
Thanks in advance,
Vijay
This library is missing in the latest release.
It is essential to rebuild the spreadsheet, pdfviewer, diagram and richtext
Any ideas where I can get it?
hi,
how to set a callout size to autosize to fit its content where it holds a radlabel control with wraptext mode once it is used as a tooltip?
thx in advance...
Greetings,
In chart view documentation, Lasso Zoom segment, there is a highlight box drawn when Lasso Zoom area is specified via dragging mouse. But when I tested on my side, there is nothing visual drawn and shown when specifying the Lasso Zoom area, however the Lasso Zoom feature works just fine. Is there Anyway to draw a rectangular box corresponding to the area specified for Lasso Zoom like the picture I attached ? Thanks in advance.
Hi Everyone , I have some problem for set Space Beetween Point Y, i want to set space look the image,
this is source code
private void DrawRadChartViewLine(RadChartView p_oRadChartView, bool bIsGrey)
{
p_oRadChartView.AreaType = ChartAreaType.Cartesian;
p_oRadChartView.Series.Clear();
#region Config New Chart Series
LineSeries series = new LineSeries();
series.CategoryMember = "MonthName";
series.ValueMember = "TotalAsset";
series.DataSource = lDataLine;
series.PointSize = new SizeF(7, 7);
series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
series.Padding = new Padding(20);
series.IsVisible = true;
p_oRadChartView.Series.Add(series);
#endregion
#region Grid Area Formatting
CartesianArea area = p_oRadChartView.GetArea<CartesianArea>();
area.ShowGrid = true;
CartesianGrid grid = area.GetGrid<CartesianGrid>();
grid.Size = new Size(970, 160);
grid.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
grid.DrawHorizontalFills = true;
grid.DrawHorizontalStripes = true;
grid.DrawVerticalFills = true;
grid.DrawVerticalStripes = false;
grid.ForeColor = Color.FromArgb(239, 229, 216); //228, 210, 190
grid.Padding = new Padding(15);
grid.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
grid.BorderWidth = 3.5f;//2.5f;
if (bIsGrey)
{
area.Grid.BackColor = Color.FromArgb(246, 246, 246);
area.Grid.BackColor2 = Color.FromArgb(246, 246, 246);
area.Grid.AlternatingBackColor = Color.FromArgb(246, 246, 246);
area.Grid.AlternatingBackColor2 = Color.FromArgb(246, 246, 246);
}
else
{
area.Grid.BackColor = Color.FromArgb(252, 249, 247);
area.Grid.BackColor2 = Color.FromArgb(252, 249, 247);
area.Grid.AlternatingBackColor = Color.FromArgb(252, 249, 247);
area.Grid.AlternatingBackColor2 = Color.FromArgb(252, 249, 247);
}
#endregion
}
i hope someone in this forum can help me..
thanky,, Regards Genda..