Skip to content

Commit

Permalink
Update package version 2.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavnavar committed Sep 14, 2021
1 parent 7009845 commit 54d3ffe
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion GridBlazor/GridBlazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LangVersion>8.0</LangVersion>
<GenerateEmbeddedFilesManifest>True</GenerateEmbeddedFilesManifest>
<EnableDefaultEmbeddedResourceItems>False</EnableDefaultEmbeddedResourceItems>
<Version>2.1.18</Version>
<Version>2.1.19</Version>
<Title>GridBlazor</Title>
<Description>Grid components for Blazor</Description>
<Summary>Grid components for Blazor</Summary>
Expand Down
6 changes: 3 additions & 3 deletions GridBlazor/Pages/GridCreateComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
continue;
}
<div class="form-group row" style="@(column.CrudHidden.HasFlag(CrudHidden.CREATE)?"display:none;":"")">
<div class="form-group row" style="@(column.CrudHidden.HasFlag(CrudHidden.CREATE) && !((IGridColumn<T>)column).ReadOnlyOnCreate(Item) ?"display:none;":"")">
@if (!string.IsNullOrWhiteSpace(column.TooltipValue))
{
<div class="col-md-@column.CrudLabelWidth.ToString()">
Expand Down Expand Up @@ -102,7 +102,7 @@
}
else
{
if (((IGridColumn<T>)column).ReadOnlyOnUpdate(Item))
if (((IGridColumn<T>)column).ReadOnlyOnCreate(Item))
{
if (type == typeof(bool))
{
Expand Down Expand Up @@ -289,7 +289,7 @@
}
else if (column.CreateComponentType != null && string.IsNullOrWhiteSpace(column.TabGroup))
{
<div class="form-group row" style="@(column.CrudHidden.HasFlag(CrudHidden.CREATE) ? "display:none;" : "")">
<div class="form-group row" style="@(column.CrudHidden.HasFlag(CrudHidden.CREATE) && !((IGridColumn<T>)column).ReadOnlyOnCreate(Item) ? "display:none;" : "")">
@if (!string.IsNullOrWhiteSpace(column.TooltipValue))
{
<div class="col-md-@column.CrudLabelWidth.ToString()">
Expand Down
2 changes: 1 addition & 1 deletion GridMvc/GridMvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<EnableDefaultEmbeddedResourceItems>False</EnableDefaultEmbeddedResourceItems>
<Product>GridMvc</Product>
<PackageId>GridMvcCore</PackageId>
<Version>4.1.9</Version>
<Version>4.1.10</Version>
<Title>GridMvc</Title>
<Description>ASP.NET MVC Grid component</Description>
<Summary>ASP.NET MVC Grid component</Summary>
Expand Down
2 changes: 1 addition & 1 deletion GridShared/GridShared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Version>4.1.9</Version>
<Version>4.1.10</Version>
<Title>GridShared</Title>
<Description>Support library for GridBlazor and GridMvcCore component libraries</Description>
<Summary>Support library for GridBlazor and GridMvcCore component libraries</Summary>
Expand Down
4 changes: 2 additions & 2 deletions docs/blazor_client/Crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ enabled | boolean to configure if the boolean field is shown as a slider
trueLabel | optional string to define the checked value label
falseLabel | optional string to define the unchecked value label

All columns required to be included in the Update form as **read only** should be configured using the ```SetReadOnlyOnUpdate(true)``` method.
You can also configure the "read only on update" behavior for each row depending on its values using the ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` method.
All columns required to be included in the Create and/or Update forms as **read only** should be configured using the ```SetReadOnlyOnCreate(true)``` and ```SetReadOnlyOnUpdate(true)``` methods.
You can also configure the "read only on create" and/or "read only on update" behaviors for each row depending on its values using the ```SetReadOnlyOnCreate(Func<T, bool> readOnlyOnUpdate)``` and ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` methods.

If a column is a date that has to be shown as ```date```, ```time```, ```week```, ```month``` or ```datetime-local``` in the CRUD forms, the column definition should use the **SetInputType** method in order to get the correct format.

Expand Down
4 changes: 2 additions & 2 deletions docs/blazor_odata/Crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ enabled | boolean to configure if the boolean field is shown as a slider
trueLabel | optional string to define the checked value label
falseLabel | optional string to define the unchecked value label

All columns required to be included in the Update form as **read only** should be configured using the ```SetReadOnlyOnUpdate(true)``` method.
You can also configure the "read only on update" behavior for each row depending on its values using the ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` method.
All columns required to be included in the Create and/or Update forms as **read only** should be configured using the ```SetReadOnlyOnCreate(true)``` and ```SetReadOnlyOnUpdate(true)``` methods.
You can also configure the "read only on create" and/or "read only on update" behaviors for each row depending on its values using the ```SetReadOnlyOnCreate(Func<T, bool> readOnlyOnUpdate)``` and ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` methods.

If a column is a date that has to be shown as ```date```, ```time```, ```week```, ```month``` or ```datetime-local``` in the CRUD forms, the column definition should use the **SetInputType** method in order to get the correct format.

Expand Down
4 changes: 2 additions & 2 deletions docs/blazor_server/Crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ enabled | boolean to configure if the boolean field is shown as a slider
trueLabel | optional string to define the checked value label
falseLabel | optional string to define the unchecked value label

All columns required to be included in the Update form as **read only** should be configured using the ```SetReadOnlyOnUpdate(true)``` method.
You can also configure the "read only on update" behavior for each row depending on its values using the ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` method.
All columns required to be included in the Create and/or Update forms as **read only** should be configured using the ```SetReadOnlyOnCreate(true)``` and ```SetReadOnlyOnUpdate(true)``` methods.
You can also configure the "read only on create" and/or "read only on update" behaviors for each row depending on its values using the ```SetReadOnlyOnCreate(Func<T, bool> readOnlyOnUpdate)``` and ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` methods.

If a column is a date that has to be shown as ```date```, ```time```, ```week```, ```month``` or ```datetime-local``` in the CRUD forms, the column definition should use the **SetInputType** method in order to get the correct format.

Expand Down
4 changes: 2 additions & 2 deletions docs/dotnetcore_blazor/Crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ enabled | boolean to configure if the boolean field is shown as a slider
trueLabel | optional string to define the checked value label
falseLabel | optional string to define the unchecked value label

All columns required to be included in the Update form as **read only** should be configured using the ```SetReadOnlyOnUpdate(true)``` method.
You can also configure the "read only on update" behavior for each row depending on its values using the ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` method.
All columns required to be included in the Create and/or Update forms as **read only** should be configured using the ```SetReadOnlyOnCreate(true)``` and ```SetReadOnlyOnUpdate(true)``` methods.
You can also configure the "read only on create" and/or "read only on update" behaviors for each row depending on its values using the ```SetReadOnlyOnCreate(Func<T, bool> readOnlyOnUpdate)``` and ```SetReadOnlyOnUpdate(Func<T, bool> readOnlyOnUpdate)``` methods.

If a column is a date that has to be shown as ```date```, ```time```, ```week```, ```month``` or ```datetime-local``` in the CRUD forms, the column definition should use the **SetInputType** method in order to get the correct format.

Expand Down

0 comments on commit 54d3ffe

Please sign in to comment.