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

Rad Grid Refresh Button

3 Answers 1530 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guruvu
Top achievements
Rank 1
Guruvu asked on 29 Nov 2010, 05:30 AM
Hi,

In my grid i would like to show Refresh button only,I don't like to show add new record button.For this what are the properties i need to set.

Please suggest me...

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Nov 2010, 06:34 AM
Hello Guruvu,

You can customize the CommandItem area using CommandItemTemplate.

ASPX:
<CommandItemTemplate>
  <asp:Button runat="server" ID="buttonRefresh" CommandName="Rebind" CssClass="rgRefresh"
                Text=" " />
  <asp:LinkButton ID="btnRefresh" Text="Refresh" CommandName="Rebind" runat="server"
  </asp:LinkButton>
</CommandItemTemplate>

Please go through the following forum post for more information on CommandItemTemplate.
Command item template

Thanks,
Princy.
1
Daniel
Telerik team
answered on 29 Nov 2010, 08:20 AM
Hello Guruvu,

You can hide the desired button in the CommandItemSettings:
<MasterTableView CommandItemDisplay="Top">
    <CommandItemSettings ShowAddNewRecordButton="false" />
</MasterTableView>

Regards,
Daniel
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Claudia
Top achievements
Rank 1
answered on 25 Jan 2013, 10:36 AM
Daniel,

Thank you! It works very well!

Best regards,
Cláudia
Tags
Grid
Asked by
Guruvu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Daniel
Telerik team
Claudia
Top achievements
Rank 1
Share this question
or