Multiline PropertyGridTextBoxEditor

2 posts, 0 answers
  1. Chris Gethin
    Chris Gethin avatar
    4 posts
    Member since:
    Mar 2010

    Posted 24 May 2012 Link to this post

    Hi,

    Is it possible to set a PropertyGridTextBoxEditor to be multiline?

    I have tried the following approach, but although the Multiline property does successfully get set to true, the textbox does not display as such.

     

     

    private void detailsPropertyGrid_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
            {
                switch (e.Item.Name)
                {
                    case "Details":
                        PropertyGridTextBoxEditor editor = e.Editor as PropertyGridTextBoxEditor;
                        editor.Multiline = true;
                        break;
                    default:
                        return;
                }
            }

    Thanks,

    Chris.

  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 29 May 2012 Link to this post

    Hello Chris,

    Thank you for writing.

    The RadPropertyGrid items have a fixed size and they cannot be resized to take a multiline text box. You can create a custom editor to show a bigger element containing a multiline text box. You can read more on creating a custom editor in out online documentation.

    I hope this will be useful. If you have further questions, I would be glad to help.

    All the best,
    Ivan Petrov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top