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

Hide 'refresh' button on radgrid, for all on site

2 Answers 269 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clayton
Top achievements
Rank 1
Clayton asked on 05 Jun 2010, 12:54 AM
I would like to be able to hide the 'refresh' button on every single radgrid on my site. I came across this page on how to hide the control manually, but if I've got a dozen radgrids on the site, it makes maintaining/adding new ones a pain. Is there some hidden property I can add to my asp skin file that would apply to all of the radgrids?

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 10 Jun 2010, 08:18 AM
Hello Clayton Craft,

In addition to the programmatic approach you have referenced, you can hide the "Refresh" buttons using one of the following options:
  • Add the following CSS selector:
    <style type="text/css">
        div.RadGrid .rgRefresh,
        div.RadGrid .rgRefresh + a
        {
            display: none;
        }
    </style>

    This option would hide both the graphic and text "Refresh" buttons. However it is not applicable for IE6.
  • Add the following CSS selector
    <style type="text/css">
        div.RadGrid .rgCommandRow a
        {
            display: none;
        }
        div.RadGrid .rgRefresh
        {
            display: none;
        }
    </style>

    This option would work for IE6. The drawback is that it would also hide the "Add new record" text button. However the graphic "Add new record" button will still be visible.

I hope this helps,
Martin
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.
0
Clayton
Top achievements
Rank 1
answered on 10 Jun 2010, 04:33 PM
That did the trick. Thank you very much!
Tags
Grid
Asked by
Clayton
Top achievements
Rank 1
Answers by
Martin
Telerik team
Clayton
Top achievements
Rank 1
Share this question
or