Hello,
I would like to add a new record using Edit.Mode.Dialog.
The problem is that OnGet method I would like to see only few data like description, amount and color. But to create a new item I need to add more information like companyId, typeid etc.
Is it possible to have a diolog mode with more input data then I let to be visible to the client?
code sample is :
<SfGrid @ref="hotelLinenGrid" DataSource="@Linens" AllowPaging="true" AllowSorting="true" AllowFiltering="true" Toolbar="Toolbaritems">
<GridEvents OnToolbarClick="ToolbarClickHandler" RowSelected="RowSelectHandler" OnActionBegin="ActionBeginHandler" TValue="HotelLinen"></GridEvents>
<GridPageSettings PageSize="10" PageCount="5" PageSizes="@pagerDropdown"></GridPageSettings>
<GridFilterSettings Mode="Syncfusion.Blazor.Grids.FilterBarMode.Immediate" Type="Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
<GridEditSettings Mode="EditMode.Dialog" AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
<GridColumns>
<GridColumn Visible="false" IsPrimaryKey="true" Field=@nameof(HotelLinen.Id) HeaderText="ID"></GridColumn>
<GridColumn Visible="false" Field="@nameof(HotelLinen.HotelLinenTypeId)" HeaderText="Type name"></GridColumn>
<GridColumn Visible="false" Field=@nameof(HotelLinen.CompanyId) HeaderText="CompanyId"></GridColumn>
<GridColumn Field=@nameof(HotelLinen.NameWithShortDescription) HeaderText="Description"></GridColumn>
<GridColumn Field=@nameof(HotelLinen.Color) HeaderText="Color"></GridColumn>
<GridColumn Field=@nameof(HotelLinen.Amount) HeaderText="Amount"></GridColumn>
</GridColumns>
</SfGrid>