This question is locked. New answers and comments are not allowed.
Kapil Koli
Top achievements
Rank 1
Kapil Koli
asked on 10 Mar 2010, 11:21 AM
Hi,
I want to remove refresh button and bottom bar containing the refresh button.
Is it removeable? If yes, how?
Thanks,
Kapil
I want to remove refresh button and bottom bar containing the refresh button.
Is it removeable? If yes, how?
Thanks,
Kapil
12 Answers, 1 is accepted
0
Richard Guo
Top achievements
Rank 1
answered on 11 Mar 2010, 04:00 AM
I am facing the same problem:
I want to hide the pager control (I found that its class is 't-pager t-reset') when the grid only has one page. In other word, I want to show the pager control only when it is needed. Can I use JQuery to do this? Please help. Thanks.
I want to hide the pager control (I found that its class is 't-pager t-reset') when the grid only has one page. In other word, I want to show the pager control only when it is needed. Can I use JQuery to do this? Please help. Thanks.
0
Hello,
To hide the footer use Footer(false):
<%= Html.Telerik().Grid(Model)
.Footer(false)
%>
Regards,
Atanas Korchev
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.
To hide the footer use Footer(false):
<%= Html.Telerik().Grid(Model)
.Footer(false)
%>
Regards,
Atanas Korchev
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
Kapil Koli
Top achievements
Rank 1
answered on 11 Mar 2010, 09:39 AM
Unforunately .Footer() is not available in telerik grid.
I am using Q1 2010 ASP MVC Extensions.
Is this available in any other patch?
Thanks,
Kapil
I am using Q1 2010 ASP MVC Extensions.
Is this available in any other patch?
Thanks,
Kapil
0
Hi Kapil Koli,
Footer is available in the official Q1 2010 (assembly version 2010.1.309). Previous versions do not have this.
Regards,
Atanas Korchev
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.
Footer is available in the official Q1 2010 (assembly version 2010.1.309). Previous versions do not have this.
Regards,
Atanas Korchev
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
Richard Guo
Top achievements
Rank 1
answered on 16 Mar 2010, 01:59 AM
Hi Atanas,
Sorry. I was busy with other things these days. Now I am coming back to this thread.
Using Footer(false) works for me but it is not ideal. If I use Footer(false) the grid will not have the pager control. Sometimes the grid might need the pager control after it has been rendered. For example, when I setup the grid I know that it only has one page so I hide the pager control by using Footer(false). However, after the grid is rendered, the user could click the column header to sort the grid. This could be a Ajax request. It is possible that at this moment the result will be more than one page(records might be added by other users). I need the pager control to be shown in this case.
Regards,
Richard
Sorry. I was busy with other things these days. Now I am coming back to this thread.
Using Footer(false) works for me but it is not ideal. If I use Footer(false) the grid will not have the pager control. Sometimes the grid might need the pager control after it has been rendered. For example, when I setup the grid I know that it only has one page so I hide the pager control by using Footer(false). However, after the grid is rendered, the user could click the column header to sort the grid. This could be a Ajax request. It is possible that at this moment the result will be more than one page(records might be added by other users). I need the pager control to be shown in this case.
Regards,
Richard
0
Hello Richard Guo,
Then use CSS to hide the refresh button:
.t-grid .t-status
{
display:none;
}
Regards,
Atanas Korchev
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.
Then use CSS to hide the refresh button:
.t-grid .t-status
{
display:none;
}
Regards,
Atanas Korchev
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
Richard Guo
Top achievements
Rank 1
answered on 19 Mar 2010, 07:42 PM
Hi Atanas,
Thanks for the answer.
I actually want to show or hide the pager control on the client side according to the number of pages. If there is only one page then I want to hide the pager control otherwise I want to show it. I am using Custom Binding. Can I somehow do it in the onDataBound event handler using JQuery?
Thanks,
Richard
Thanks for the answer.
I actually want to show or hide the pager control on the client side according to the number of pages. If there is only one page then I want to hide the pager control otherwise I want to show it. I am using Custom Binding. Can I somehow do it in the onDataBound event handler using JQuery?
Thanks,
Richard
0
Hello Richard Guo,
Yes you can. You can use the following code to retrieve the pager and hide it:
$('.t-pager').hide();
Regards,
Atanas Korchev
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.
Yes you can. You can use the following code to retrieve the pager and hide it:
$('.t-pager').hide();
Regards,
Atanas Korchev
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
Richard Guo
Top achievements
Rank 1
answered on 23 Mar 2010, 05:09 PM
Hi Atanas,
Thanks for your help. That answered the second part of my question. I need to check the number of pages so that I can use $('.t-pager').hide() to hide the pager when there is only one page. How can I get the number of pages of a grid by javascript from client side?
Thanks,
Richard
Thanks for your help. That answered the second part of my question. I need to check the number of pages so that I can use $('.t-pager').hide() to hide the pager when there is only one page. How can I get the number of pages of a grid by javascript from client side?
Thanks,
Richard
0
Hi Richard Guo,
You can use the totalPages() JavaScript method of the grid.
Kind regards,
Atanas Korchev
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.
You can use the totalPages() JavaScript method of the grid.
Kind regards,
Atanas Korchev
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
Richard Guo
Top achievements
Rank 1
answered on 24 Mar 2010, 05:04 PM
Thank you very much Atanas.
0
Kapil Koli
Top achievements
Rank 1
answered on 03 Jun 2010, 07:22 AM
Thank you all.