Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
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 :)