Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
I have bind an object to property grid. One of the objects properties is String but I want that property must fill with values of a list.
How can I make it?
Regards!
private
void
RadPropertyGrid1_EditorRequired(
object
sender, Telerik.WinControls.UI.PropertyGridEditorRequiredEventArgs e)
{
if
(e.Item.Name ==
"Text"
)
var editor =
new
PropertyGridDropDownListEditor();
var element = editor.EditorElement
as
BaseDropDownListEditorElement;
element.DataSource =
List<
string
>() {
"Item1"
,
"Item2"
};
e.Editor = editor;
}
That worked!
Thank you Dimitar :)