This is a migrated thread and some comments may be shown as answers.
Hiding Refresh Button but not Pager
3 Answers 88 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nikhil Kashyap
Top achievements
Rank 1
Nikhil Kashyap asked on 04 Aug 2010, 08:27 AM
Hi,
     I want to hide the refresh button from the grid. I m using the following code but this is hiding the pager as well:

.t-grid .t-status
{
   display:none;
}

I just want to hide refresh button. how to acheive this?

Regards
Nikhil Kashyap
Customer Id: JT359876

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 04 Aug 2010, 01:03 PM
Hello Nikhil Kashyap,

This problem can be solved with:

<% Html.Telerik().ScriptRegistrar().OnDocumentReady(() => { %>
       $('#idOfGrid .t-status').hide();
<%  }); %>

You must write this line in OnDocumentReady(), where all JQuery libraries are already loaded.

Greetings,
Hristo Germanov
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
Hardy Wang
Top achievements
Rank 1
answered on 26 Mar 2011, 01:27 AM
Hi,

ScriptRegistrar() is usually called in master page, and each content page has different grid name, how to make it more flexible?

Hardy
0
Henry
Top achievements
Rank 1
answered on 22 Mar 2012, 04:02 AM
for razor engine:

add below code in "_Layout.cshtml" file or particular page that you want to control individually.

@(
    Html.Telerik().ScriptRegistrar()

        //Hiding Refresh Button in Pager
        .OnDocumentReady("$('#Grid .t-status').hide();")
)
Tags
Grid
Asked by
Nikhil Kashyap
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Hardy Wang
Top achievements
Rank 1
Henry
Top achievements
Rank 1
Share this question
or