I have a Winform that includes a Grid that my Users can edit by adding/removing columns.
I have an Object ("gridProps" class) that holds all of the "grid" properties,
gridProps.Columns property replaces the default (text) editor with my own popup radForm that works very much like your own "Columns" property for radGrid. When the user clicks into that Property on the PropertyGrid, you get a string representation and a "..." button. Clicking on that button bring up my "Columns Editor" radForm and takes over until "OK" or "Cancel"
Everything works...except: The user can click into "Columns" on the PropertyGrid and it automatically opens the "Textbox" editor inside the PropertyGrid and the user can type away. Nothing happens with this input - my TypeConverter sees to that but they are still allowed to type whatever they want until they click away or hit enter/tab etc.
Is there a way to PREVENT the user from typing anything but STILL ALLOW them to click the "..." button?
I'm trying to mimic exactly how Telerik RadGrid's Columns property works.
Any advice would be helpful and appreciated!
-C
Hello Support Team.
I have an application with a PropertyGrid in C# with WinForms. Is it possible to have a CheckedListBox to allow multiple selections in the PropertyGrid?
Thank you in advance.
Hello, support team.
I have an application with a PropertyGrid in C# with WinForms. In this PropertyGrid I need to display a drop-down list with a predefined value list, but I need to allow also the user be able to edit a not listed value.
Thank you in advance
I have created a custom PropertyGridItemElement for my RadPropertyGrid to hold a button. When the user clicks the button, the click handler performs some action, but the action is based on data that is known by the form that contains the propertygrid that contains the custom element. How do I arrange for that data to be available to the button's Click handler? The constructor of the custom element isn't even called explicitly -- it's implicit in
PropertyGrid.CreateItemElement += (sender, args) =>
{
if (args.Item.Name == nameof(LabelWrapper.Button))
{
args.ItemElementType = typeof(CustomPropertyGridItemElement);
}
};
Thanks in advance.
This is a follow-up to my question from last week re a data-driven property grid.
1. Is there any way to remove the white space to the left?
2. In the (abbreviated) code below, I am able to set the ForeColor of the text description but If I try the BackColor, nothing happens. Perhaps a bug?
private void propDataDriven_ItemFormatting(object sender, PropertyGridItemFormattingEventArgs e)
3. Looking at the date entry, I turned off the context menu but the vertical ellipsis still appears when I click in the cell. Nothing happens when I click on this though. is this intended behavior? I'd rather not see it at all.
Thanks
Carl
I'm trying to extend the default capabilities of Telerik's PropertyGrid with some custom editors. However, I'm a little perplexed as to how to get the RadPopupEditor to work.
Looking at the Telerik Theme Viewer tool, there is a rough example of what I'm trying to achieve with the TextAlignment setting (Although I intend to fill the PopupContainer with other components).
Has anyone managed to replicate this and can point me in the right direction?
Thanks!
Hi, could you tell me how to remove an item from the propertygrid that is highlighted in red? this appears after editing a field
theme: office2019dark
telerik winforms: r1 2023
Hi guys,
I have been searching for a correct answer for that, but without success. It looks like work in C# but not in VB.
I want to implement a TAB between the rows in this sample project. Any idea what is missed?
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; }
Hello,
I am getting to know the RADPropertyGrid control, it seems flexible.
I have an XML file where "Key" would be the property name and "Value" would be the value in RADPropertyGrid. Where required, I also have a value list between the "ValueList" element. My question is, how can I pass the XML so that the value list for that element is displayed as a string in a combobox in the RADPropertyGrid associated with the property?
Can you show me a sample project on how to do this?
Sample XML:
<PictureBox>
<Property>
<Key>EnableClickZoom</Key>
<Value>False</Value>
</Property>
<Property>
<Key>EnableZoom</Key>
<Value>False</Value>
</Property>
<Property>
<Key>EnableAutoPan</Key>
<Value>False</Value>
</Property>
<Property>
<Key>SizeMode</Key>
<Value>Fit</Value>
<ValueList>
<Value>Normal</Value>
<Value>Stretch</Value>
<Value>Fit</Value>
</ValueList>
</Property>
<Property>
<Key>Zoom</Key>
<Value>30</Value>
</Property>
<Property>
<Key>InterpolationMode</Key>
<Value>Default</Value>
<ValueList>
<Value>Default</Value>
<Value>Low</Value>
<Value>High</Value>
<Value>Bilinear</Value>
<Value>Bicubic</Value>
<Value>NearestNeighbor</Value>
<Value>HighQualityBilinear</Value>
<Value>HighQualityBicubic</Value>
</ValueList>
</Property>
</PictureBox>