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

UserControl. Show Insert/Update/Cancel buttons in Edit mode

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stas
Top achievements
Rank 2
Stas asked on 12 Aug 2010, 05:19 AM
Hi,
How to show built in radgrid buttons (Insert/Update/Cancel) in Edit mode when EditFormType is "WebUserControl"
Thank you

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Aug 2010, 05:57 AM
Hello,

You can add the Buttons with CommandName as PerformInsert/Update/Cancel to WebUserControl like below .

ASPX:
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
    CommandName="Cancel"></asp:Button>

Thanks,
Princy.
Tags
Grid
Asked by
Stas
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or