Is there some way to change a button to have an animated spinning gif after clicking it invokes either a data retrieval or does an update? Something like this (with the boolean as a property in code-behind)?
<
TelerikButton
OnClick="@(args => NameOfFunction(param1, param2, param))">Retrieve
<
template
>
@if(IsSaving == false)
{
//Leave button as is
}
else
{
//Put animated spinning gif
}
</
template
>
</
TelerikButton
>
He's not wanting to show a loader on the screen "somewhere" but instead swap an icon within the button to be a loader while performing an action. I am needing to do something like this as well and the compile fails. This is baked in behavior in other frameworks like material and bootstrap. Is this not a possibility?
@Billy - the previously linked Loader Overview page contains a "Using In Other Components" section with an example of a Loader inside a Button.