We use RadDock.SaveToXml and LoadFromXml to store the current dock state of our WinForms application.
We have a problem that if a user floats a ToolWindow and then reattaches it and then the RadDock SaveToXml is called a new ToolTabStrip appears to be created. This means that when a new ToolWindow is added to the ToolTabStrip (found by name), it is adding the ToolWindow to the wrong ToolTabStrip and the new ToolWindow cannot be seen.
I am wondering how to fix this and think the best way would be to use an event triggered on re-docking to place the ToolWindow being re-docked in the correct ToolTabStrip. Is there any suggested way to do this or any other solution?
Before floating and re-docking the ToolWindow:
<Telerik.WinControls.UI.Docking.ToolTabStrip SelectedIndex="0" CanUpdateChildIndex="True" Size="200, 994" Location="1, 1" CausesValidation="False" Name="toolTabStrip_Navigation" TabIndex="2" TabStop="False">
<SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" />
<Controls>
<Telerik.WinControls.UI.Docking.ToolWindow Caption="" AllowedDockState="Docked, Hidden, AutoHide, Floating" PreviousDockState="Docked" Name="twNavigation" Size="192, 960" Location="4, 30" AccessibleDescription="Explorer" AccessibleName="Explorer" Font="Microsoft Sans Serif, 8.25pt" Text="Explorer" />
</Controls>
</Telerik.WinControls.UI.Docking.ToolTabStrip>
After re-docking the ToolWindow:
<Telerik.WinControls.UI.Docking.ToolTabStrip SelectedIndex="0" CanUpdateChildIndex="True" Size="200, 994" Location="1, 1" Name="DockTabStrip3" TabIndex="4" TabStop="False">There is a bug in the RadGridView when using built in filters.
If I filter a grid by a value that returns a single row, the row is visibly selected but and I get a System.NullReferenceException, if I try to get a cell value when the SelectionChanged event is fired. When I handle the exception, and I then click on the row, it does not fire the SelectionChanged event.
I have to set .CurrentRow = Nothing on FilterChanged in order to click on and select the row, which will then fire the SelectChanged event and I get the value expected.
Here is my relevant code to reproduce the issue;
Private Sub RadGridViewFullBadge_SelectionChanged(sender As Object, e As EventArgs) Handles RadGridViewFullBadge.SelectionChanged
'This If Statement is Required or I get a System.NullReferenceException after the filter is applied
If RadGridViewFullBadge.CurrentRow IsNot Nothing Then
RadTextBoxControlTestBadge.Text = RadGridViewFullBadge.CurrentRow.Cells("BadgeID").Value
End If
End Sub
Private Sub RadGridViewFullBadge_FilterChanged(sender As Object, e As GridViewCollectionChangedEventArgs) Handles RadGridViewFullBadge.FilterChanged
RadGridViewFullBadge.CurrentRow = Nothing
End Sub
James
Hello
I have Un-installed all Telerik controls, VS2022.
Used ProgressControlPanelSetupA_2022_1_0727_1.exe to reinstall.
Then, Create new project of type 'Telerik UI for Winforms cSharp .Net Core App'
But I am getting
Severity Code Description Project File Line Suppression State
Error NU1101 Unable to find package UI.for.WinForms.AllControls.Net60. No packages exist with this id in source(s): nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered:
C:\Program Files\dotnet\library-packs, Telerik, Telerik UI for WinForms 2022.3.921, Telerik UI for WinForms 2022.3.921.0.
ARTesting D:\Development\AngleRing\AngleRingCRM\ARTesting\ARTesting.csproj 1
Please advise
Thank you.
Steven Fellows
Hi,
I got the following error while loading the RadForm. Can you help. Thanks
Peter
Hello,
In order to sincronize horizontal scrollbars in GridView we are using the source code of the following article:
https://docs.telerik.com/devtools/winforms/knowledge-base/synchronize-scrollbars-in-hierarchy-levels
The thing is that we have tried this code in an empty project with an empty grid with 11 columnas, 30 rows and still 0 child rows and when I move the scroll bar there is too much lag.
The code line that causes the lag is: this.radGridView1.MasterTemplate.Refresh(); in the HScrollBar_ValueChanged method but it's the line that makes everything work.
Is there any way to imporve this or any new method that we can implemente since the article was made in 2018 so there may be there ways to do it.
Thank you and regards.
Hi,
default behavior when creating a new WinForms project is that this setting is generated in app.config:
<appSettings>
<add key="TelerikWinFormsThemeName" value="VisualStudio2022Light" />
</appSettings>
Since I am using .net 6 and appsettings.json, I would love to eliminate app.config entirely.
Is there a way to move this setting to appsettings.json or implement it in code globally (without adding the code in every form or user control) and still maintain the design time functionality?
regards,
Darko
Is there a Winforms example of a RadCheckedDropDownList as an Editor for a PropertyGrid?
There is a sample for WPF, https://docs.telerik.com/devtools/wpf/controls/radpropertygrid/features/radenumeditor
There is sample for Winforms Gridview, https://docs.telerik.com/devtools/winforms/controls/dropdown-listcontrol-and-checkeddropdownlist/checkeddropdownlist/how-to/use-as-radgridview-editor
but nothing for Winforms PropertyGrid.
How would I get the following to appear as a checked drop down editor inside a property grid in winforms?
using CommunityToolkit.Mvvm.ComponentModel; namespace ProjectXYZ.Model.Enums; public enum BroadcastPlanEnum { Plan1, Plan2, Plan3, Plan4, Plan5, Plan6 } public sealed partial class BroadcastPlanActive : ObservableObject { [ObservableProperty] private BroadcastPlanEnum broadcastPlan; [ObservableProperty] private bool selected; }
I am not having any luck finding a way to adjust the height of status string on my form.
TIA for any help
How can I add a Datetime to the exported file name
spreadExporter.RunExport(@"C:\#support\Reports\AlarmsRpt\AlarmsReport.xlsx", renderer);
Does not allow for overloads, so, how can I do it?
Thanks,
Hi,
I’m a litte bit confused concerning checkboxes in the Telerik GridView. For this a made an example program to show the confusing point. It has to do with checkboxes, states and filtering.
I’ve a grid with a twoState checkbox and one with a threeState checkbox. The threeState one is doubled, one based on the nullable boolean and one with a typeconverter.
My goal is when I’ve a twostate checkbox column, to also have a twostate filter. When I let the code default, I get a threestate checkbox in the filter area. The third state is a filled box (Indeterminate). In my opinion it has no value because the filtering is treated like ‘I don’t care what the content is’ or simply ‘no filtering’. Ok.. I could live with that. The meaning of the Indeterminate status is the same as no filtering.
Now the first threestate one (bool?). when I start the application there is no checkbox in the filter area and it says ‘no filter’. If I want to filter I’ve to click explicitly on the filtericon, then the checkbox appears and I can click on it. The third state (Indeterminate) is like the first column. I see all the records. What I see as a problem is that I can’t filter on records who has Indeterminate (or null) as value. Thereby the meaning of the Indeterminate is not clear anymore. The filtering is treated like ‘no filter’ but in the records it means ‘there is no value’. Also I can’t get control on the appearance of the filterbox. Try playing with it by clicking on the checkbox and clicking ‘no filter’ in the contextMenu. Sometimes the filter checkbox disappears or its not clickable anymore. ??
The third checkbox column is one with a typeConverter behind it. At start of the application there is a checkbox in the filterarea and its stated as Indeterminate. I see all the records so it’s meaning should be the same as the first column – ‘no filtering’. Now when I start clicking on the filtercheckbox the meaning changes. Now it filters on Indeterminate. When I remove the filter through the contextMenu, the filterbox disappears. This is actually correct but it’s start state is not.
So, I’m pretty confused now.
Of course I’ve searched around on the internet and I found something interesting. In one the items on the Telerik forum I saw a possibility for breaking in on the filter checkbox appearance – it’s the ViewCellFormatting event. It looks like that when I’ve a twostate column, the filtercheckbox gets threestate and visaversa. Is this a bug??
In my example application I changed that (see code). A twoState column gets also a two state filtercheckbox by setting it explicitly. So please enable the eventhandler and run the program again.
Now I almost get what I would expect. The first column which is twostate, can only be filtered on 2 states. True or false. If one want to see all, remove the filter. Sounds logically.
The first threestate column (bool?) has no checkbox at start of the application. When I set filtering through the contextMenu, it appears and the meaning of Indeterminate is like ‘no filter’. If I remove the filter, the checkbox does not and the state is Indeterminate. ??
The second threestate (with a converter) reacts the same as without the eventhandler. It starts with a checkbox in the filter area which has the Indeterminate state, but I see all the records. After clicking it, it starts to filter it correctly. At removing the filter, the filterbox is empty.
As you can probably understand the current situation is not acceptable for us because of ambiguous meanings and inconsistency concerning the start situation and after working in the grid.
What’s going on?? What is the intention of Telerik and where do I get confused??
What I would like to have is in case of a two state column, a two state filtercheckbox and the working of the column with the converter except not with that starting state. At start the filterbox should be empty.
Please help me out of this.