Radgrid CommandItemSettings add custom button
26,278
Could you please check the below link, in it they have specified the add with custom item and also you can put your custom button over there :
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx
Author by
nav100
Updated on April 01, 2020Comments
-
nav100 about 4 years
I have a Telerik RadGrid has a "Add New" button using a
CommandItemSettings
-AddNewRecordText
. I would like to add a custom button next to "Add New" called "Add Custom". I createdCommandItemTemplate
to create a custom button. But it replaces the "Add New" button. How can I use "CommandItemSettings" and "CommandItemTemplate" together? I couldn't find any examples online. 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>