I have an EditForm with some simple attributes that I would like to edit. The TelerikButtons, Abort and Save, are directly implemented and call the necessary business logic.
But now I would also like to implement the EditForm as a TelerikDialog popup to quickly record data. Sadly, the buttons are duplicated.
How should I go about not duplicating the functionality? Can I somehow move them or redirect the dialogbuttons to call them?
<TelerikDialog Visible="@IsAssetCreationVisible" ButtonsLayout="@DialogButtonsLayout.End" Width="30%">
<DialogContent>
<GameAssetCreatePage AssetType="AssetType.Text"></GameAssetCreatePage>
</DialogContent>
<DialogButtons>
<TelerikButton>Abort</TelerikButton>
<TelerikButton Id="@GameAssetCreatePage.EditFormId"
ButtonType="ButtonType.Submit"
ThemeColor="@ThemeColor.Primary">Save and Close</TelerikButton>
</DialogButtons>
</TelerikDialog>