Radgrid CommandItemSettings add custom button
I have a Telerik RadGrid with an Add New button using CommandItemSettings
- AddNewRecordText
. I would like to add a custom button next to Add New, titled Add Custom. I created CommandItemTemplate
to create a custom button. But it replaces the Add New button. How can I use "CommandItemSettings" and "CommandItemTemplate" together? I couldn't find examples on the internet. Please let me know.
<telerik:RadGrid ID="rgTest" runat="server" AutoGenerateColumns="false" >
<MasterTableView DataKeyNames="id" PageSize="50"
CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add New"
Width="100%" EditMode="EditForms" Name="Master">
<CommandItemTemplate>
<div style="padding: 5px 5px;">
<asp:LinkButton ID="LinkButton2" runat="server" >Add custom</asp:LinkButton>
</div>
</CommandItemTemplate>
source to share
Could you please check the link below, in it they specified adding with a custom item and also you can put your custom button there:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx
source to share