I need to add additional buttons inside a grid EditMode.Dialog template, for example: a button for "Shipping Address same as Customer" . The problem is when the button is clicked it submits the form, which is not what it is supposed to do. How can it be prevented ?
<div class="form-group">
<label class="col-sm-6">SHIPPING INFORMATION</label>
<div class="col-sm-6">
<SfButton @onclick="CopyAddressFromCustomer">Same as Customer</SfButton>
</div>
</div>
@code{
protected void CopyAddressFromCustomer()
{
// code to repeat address.....
}
}