Skip to content

Commit

Permalink
Update Render_button_checkbox_etc_in_a_grid_cell.md (#336)
Browse files Browse the repository at this point in the history
fixed some outdated code examples
  • Loading branch information
omski authored Mar 12, 2022
1 parent a15fdfe commit 5a2928c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/blazor_server/Render_button_checkbox_etc_in_a_grid_cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ In this sample we name the component **ButtonCell.razor**:
public GridComponent<Order> GridComponent { get; set; }
[Parameter]
public Order Item { get; protected set; }
public Order Item { get; set; }
[Parameter]
public IList<Action<object>> Actions { get; protected set; }
Expand All @@ -87,7 +87,7 @@ In this sample we name the component **ButtonCell.razor**:
[Parameter]
public object Object { get; protected set; }
private void MyClickHandler(UIMouseEventArgs e)
private void MyClickHandler(MouseEventArgs e)
{
if (Actions == null)
{
Expand Down Expand Up @@ -120,7 +120,7 @@ In this sample we name the component **ButtonCell.razor**:
@code {
[Parameter]
public Order Item { get; protected set; }
public Order Item { get; set; }
private void CheckChanged()
{
Expand All @@ -139,12 +139,12 @@ In this sample we name the component **ButtonCell.razor**:
@code {
[Parameter]
public Order Item { get; protected set; }
public Order Item { get; set; }
private void MyClickHandler(UIMouseEventArgs e)
private void MyClickHandler(MouseEventArgs e)
{
Console.WriteLine("Button clicked: /Home/Edit/" + Item.OrderID);
}
}
```
[<- Data annotations](Data_annotations.md) | [Subgrids ->](Subgrids.md)
[<- Data annotations](Data_annotations.md) | [Subgrids ->](Subgrids.md)

0 comments on commit 5a2928c

Please sign in to comment.