BrowseEditor default (none) text

4 posts, 0 answers
  1. Aleksandr
    Aleksandr avatar
    7 posts
    Member since:
    Nov 2012

    Posted 06 Feb 2014 Link to this post

    Hello!
    When there is no selected file in BrowseEditor control there is default text "(none)". I've tried to set value to "", but there was no effect. Is there a way, to set textbox text to empty string? Thank you in advance.
  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 07 Feb 2014 Link to this post

    Hi Aleksandr,

    Thank you for contacting us. 

    If you want to change default text when add RadBrowseEditor, you need to change the Text property of the TextBoxItem. Please take a look at the following example: 
    this.radBrowseEditor1.BrowseElement.TextBoxItem.Text = "";

    Hope this will help you. Let me know if you have any other questions.

    Regards,
    Ralitsa
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Aleksandr
    Aleksandr avatar
    7 posts
    Member since:
    Nov 2012

    Posted 07 Feb 2014 in reply to Ralitsa Link to this post

    I've tried it in Form_Load event, but BrowseEditor still displays (none) text.
  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 11 Feb 2014 Link to this post

    Hello Aleksandr,

    Thank you for writing back.

    Note that by default the RadBrowseEditor.BrowseElement is ReadOnly and if you change its default text, it will not take affect until the ReadOnly property is set to false.
    public Form1()
    {
        InitializeComponent(); 
         
        this.radBrowseEditor1.BrowseElement.ReadOnly = false;
        this.radBrowseEditor1.BrowseElement.TextBoxItem.Text = "";
     
        //if you want to keep it ReadOnly
        this.radBrowseEditor1.BrowseElement.ReadOnly = true;
    }

    Please do not hesitate to contact us if you have any additional questions.

    Regards,
    Desislava
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top