HI,
Exploring the Demo Winforms FilterView component a bug is present.
When you expand several categories ,the automatic Vertical Scroll bar is showed but the "Maximum" property value is wrong.
You can't see all the items inside. Some items are hidden at bottom.
But if you collapse some category the new "Maximum" values takes the right previous value before collapsing showing more space as expected
I have a workaround to prevent this situation calling CategoryExpandedChanged event.
Firstly I need to call Application.DoEvents() in order to resizing internally by the component all the StackLayoutPanels connaining the Category Items
After that, I call the private method UpdateScrollBars (Suggested by support) and the ScrollBar takes the right size for its content.
Now I can show all the contained items inside the FilterView panel.
FRC
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public RadForm1()
{
InitializeComponent();
DataTable dt = new DataTable();
for (int i = 0; i < 20; i++)
{
dt.Columns.Add("col" + i, typeof(string));
}
for (int i = 0; i < 10; i++)
{
DataRow r = dt.NewRow();
foreach (DataColumn col in dt.Columns)
{
r[col.ColumnName] = Guid.NewGuid().ToString();
}
dt.Rows.Add(r);
}
this.radFilterView1.DataSource = dt;
}
private void radFilterView1_CategoryCreated(object sender, Telerik.WinControls.UI.FilterView.FilterViewCategoryCreatedEventArgs e)
{
e.Category.ExpandedChanged += Category_ExpandedChanged;
e.Category.Expanded = false;
}
private void Category_ExpandedChanged(object? sender, EventArgs e)
{
// You need pass the control to Windows main loop to perform the pending telerik events after property Expanded change in order to resize internally
// the StackLayoutPanel Containers before calling UpdateScrollBars
Application.DoEvents();
// Now your code
MethodInfo mi = typeof(RadFilterViewElement).GetMethod("UpdateScrollbars", BindingFlags.Instance | BindingFlags.NonPublic);
mi.Invoke(this.radFilterView1.FilterViewElement, new object[] { this.radFilterView1.FilterViewElement.ElementsPanel.Size });
// Hide the horizontal scrolll bar
radFilterView1.FilterViewElement.HorizontalScrollBar.Visibility =ElementVisibility.Collapsed;
}
}
Setting the SyntaxEditorElement.HorizontalScrollBar.Visibility property to Collapsed indeed hides the horizontal scrollbar but it is still measured and arranged and overlaps the view if you shrink the view:
Hi guys,
It would be great to be able to set the day start/finish times in your Scheduler.
Your Scheduler control is fantastic, but I am building a Scheduler for a company that operates over 24hrs and the shift hours are
6am - 6pm
6pm - 6am
both shifts are classed as being the same day even though the nightshift crosses over to the next day.
I would like to be able to adjust the 24hr period that defines a day so that in month view the appointment will not carry over to the next shift.
and in day view, the schedule will start at 6am and go through to 6am.
If you could implement this, your scheduler control would be even more powerful and awesome.
Thanks!
The button indicating the RadDropDown draws just a think border on the left-side instead of drawing a thin four-sided border around the arrow.
Html-like parser crash when process <html><a href="mailto:<a href=</a></html> text
CaptionTextFont property does not work. It should set the font of the OutLookStyle's caption and the font of the groups' headers.
In the VSB set the CommandBarTextBoxElement MinSize property to a value greater than 299 and when you close the Elements property grid you will get an unhadled exception.
If you create a new theme from scratch it will be missing the style sheet relations needed to see the theme runtime.
Image into LightVisualElement is not thread safe and this may leads to exceptions if you access it from several threads. Steps to reproduce: 1.Create form that use theme with images. 2.Open this form several times. 3. Move mouse fast over them until exception occur.
1.Drag a RadGridView to a form 2.Click Dock in parent from its SmartTag menu 3.Now change the Dock to None from the Properties window 4.Open again the smart tag and you will see that the link's text is "Undock in parent container" but the control is not docked. The same issue occurs with all controls that have "Dock in parent container" action link.
If you use HTML-like text formatting and put text in <u></u> tag the spaces between words would not be underlined.
Currently the sgen tool raises an exception when executing it on RadControls and RadControls.UI. There is also an XmlSerialization exception when loading the application.
The LabelFormat property of the RadChartView axes does not take effect
Steps to reproduce: 1. Drag a grid on the form 2. Drag one or more controls over the grid - at this point in the Document Outline you can see the dragged control is a child of the grid 3. Open the Property Builder of the grid and close it - at this point the dragged control disappears Workaround: 1. Open the Designer.cs file, and locate the line, where the control is added to the grid e.g. this.radGridView2.Controls.Add(this.radButton4); and change it to: this.Controls.Add(this.radButton4); If need be, set the Location property of the control at design time, to position it at the desired place. 2. Alternatively, you can place the control outside the grid bounds and after selecting it, use the arrow keys to position is over the grid. This will not make it its child, hence the issue will not appear.