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

How do I hide the back and forward buttons

3 Answers 174 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
WAMatt
Top achievements
Rank 2
WAMatt asked on 24 Feb 2010, 08:03 PM
Hopefully this is a simple question, but I can't seem to find a solution.  How do I hide the back and forward buttons in a RadFileExplorer?

Any help is appreciated.

Matt

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Feb 2010, 07:05 AM
Hi Matt,

Add the following style in order to hide the "Back" and "Forward" buttons.

CSS:
 
    <style type="text/css"
        .RadFileExplorer .RadToolBar .icnBack .rtbText 
        { 
            backgroundnone !important; 
        } 
        .RadFileExplorer .RadToolBar .icnForward .rtbText 
        { 
            backgroundnone !important; 
        } 
    </style> 

Regards,
Shinu.
0
Jim
Top achievements
Rank 1
answered on 26 Feb 2010, 12:54 AM
Thanks for the tip. That works great.
Is there any way to get the remaining items shifted to the left. The buttons are gone, but the space for them remains.
0
Accepted
Fiko
Telerik team
answered on 02 Mar 2010, 08:56 AM
Hello Jim,

I recommend you to add this code in the Page_Loa event in order to hide the Back and forward buttons:
protected void Page_Load(object sender, EventArgs e)
{
    RadFileExplorer1.ToolBar.Items[0].Visible = false;
    RadFileExplorer1.ToolBar.Items[1].Visible = false;
}


I hope this helps.

Kind regards,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
WAMatt
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Jim
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or