Posted 2 December 2024, 10:46 pm EST
Hi
I have a button column with a flexgrid, by using the “CellTemplate”:
<GridColumn Header="Action">
<CellTemplate>
@{
var item = (ShiftApplication)context;
}
<button @onclick="() => OnApproveClick(item)"
class="btn btn-primary btn-sm"
style="margin: 2px;">
Approve
</button>
</CellTemplate>
</GridColumn>
If a different application on the computer is focused, such as windows explorer, and the user then moves their mouse to the button in the column and clicks the button, the behaviour is as follows:
- the button animation shows as if the button was clicked.
- the button click action does not happen.
In other words, the webpage must have focus before clicking the button for the action to work.
This is in contrast to the behaviour of a button that is not within the grid.
If the button is not in the grid, then it works correctly.
Is there anyway to change this behaviour?