This is a migrated thread and some comments may be shown as answers.

BrowseEditor default (none) text

3 Answers 143 Views
BrowseEditor
This is a migrated thread and some comments may be shown as answers.
Aleksandr
Top achievements
Rank 1
Aleksandr asked on 06 Feb 2014, 02:09 PM
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.

3 Answers, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 07 Feb 2014, 07:19 AM
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).

0
Aleksandr
Top achievements
Rank 1
answered on 07 Feb 2014, 10:06 AM
I've tried it in Form_Load event, but BrowseEditor still displays (none) text.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Feb 2014, 02:36 PM
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).

Tags
BrowseEditor
Asked by
Aleksandr
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Aleksandr
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or