My code:
<div class="col-lg-12 control-section">
<div class="content-wrapper">
<div class="row">
<SfGrid DataSource="@ListaGastos" AllowPaging="true" Toolbar="@(new string[] {"Add", "Edit" ,"Delete" })" Adaptor="Adaptors.ODataV4Adaptor">
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="@EditMode.Dialog" Dialog="DialogParams">
</GridEditSettings>
@*<SfGrid DataSource="@ListaGastos" Toolbar="@(new List<string>() { "Search" })" AllowPaging="true">*@
<GridPageSettings PageSize="5"></GridPageSettings>
<GridEvents OnActionComplete="ActionCompleteHandler" CommandClicked="OnCommandClicked" TValue="Gasto"></GridEvents>
<GridColumns>
@*<GridColumn Field=@nameof(Gasto.DataGasto) HeaderText="Data" Format="d/M/y" TextAlign="TextAlign.Left" Width="195" EditType="EditType.DateTimePickerEdit"></GridColumn>*@
<GridColumn Field=@nameof(Gasto.DataGasto) HeaderText="Data" EditType="EditType.DatePickerEdit" Type="ColumnType.Date" Width="120" />
<GridColumn Field=@nameof(Gasto.Descricao) HeaderText="Descrição" TextAlign="TextAlign.Left" Width="195"></GridColumn>
<GridColumn Field=@nameof(Gasto.Valor) HeaderText="Valor" Format="C2" TextAlign="TextAlign.Left" Width="195"></GridColumn>
<GridColumn HeaderText="Opções" Width="150">
<GridCommandColumns>
<GridCommandColumn Type="CommandButtonType.Delete" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-delete", CssClass="e-flat" })"></GridCommandColumn>
</GridCommandColumns>
</GridColumn>
</GridColumns>
</SfGrid>
</div>
</div>
</div>
when i click in add button , my app open the dialog to insert data, but the field Data doesn't be enable to insert any data ,
first error:
second error when i try add some data
Can you help me?