Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Docs & Resources
Productivity and Design Tools
Hi Ryan,
My answer assumes that you are using inline Grid edit mode. You can set the Save command button text at runtime, depending on which Grid event fired - OnAdd or OnEdit.
<TelerikGrid OnAdd="@OnGridAdd" OnEdit="@OnGridEdit"> <GridColumns> <GridCommandColumn> <GridCommandButton Command="Save" ShowInEdit="true">@SaveButtonText</GridCommandButton> </GridCommandColumn> </GridColumns> </TelerikGrid> @code { private string SaveButtonText { get; set; } = "Save"; // practically never used private void OnGridAdd(GridCommandEventArgs args) { SaveButtonText = "Add"; } private void OnGridEdit(GridCommandEventArgs args) { SaveButtonText = "Update"; } }
Regards, Dimo Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.