Telerik Forums
UI for WinForms Forum
1 answer
29 views

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

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Apr 2025
1 answer
32 views

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.

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Nov 2024
1 answer
60 views

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

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Nov 2024
2 answers
62 views

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.

Michael
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 04 Jul 2024
2 answers
248 views

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)
{
    PropertyGridItemElement el = e.VisualElement as PropertyGridItemElement;

    el.TextElement.ForeColor = Color.Red; //works fine

    el.TextElement.BackColor = Color.Green; //does nothing
}

 

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

Nadya | Tech Support Engineer
Telerik team
 answered on 13 Sep 2023
1 answer
104 views

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!

 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Aug 2023
1 answer
159 views

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

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Jun 2023
1 answer
118 views

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?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 May 2023
1 answer
119 views

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;
}

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Oct 2022
1 answer
216 views

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>
Dinko | Tech Support Engineer
Telerik team
 answered on 05 Jul 2022
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?