How do I hide the back and forward buttons

4 posts, 1 answers
  1. WAMatt
    WAMatt avatar
    17 posts
    Member since:
    Sep 2009

    Posted 24 Feb 2010 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Feb 2010 Link to this post

    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.
  3. Jim
    Jim avatar
    42 posts
    Member since:
    Mar 2009

    Posted 25 Feb 2010 Link to this post

    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.
  4. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 02 Mar 2010 Link to this post

    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.
Back to Top