Skip to content

Commit f63fc6d

Browse files
committed
Update package version 1.6.10
1 parent a6e61ec commit f63fc6d

File tree

8 files changed

+78
-8
lines changed

8 files changed

+78
-8
lines changed

GridBlazor/GridBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LangVersion>8.0</LangVersion>
77
<GenerateEmbeddedFilesManifest>True</GenerateEmbeddedFilesManifest>
88
<EnableDefaultEmbeddedResourceItems>False</EnableDefaultEmbeddedResourceItems>
9-
<Version>1.6.9</Version>
9+
<Version>1.6.10</Version>
1010
<Title>GridBlazor</Title>
1111
<Description>Grid components for Blazor</Description>
1212
<Summary>Grid components for Blazor</Summary>

GridMvc/GridMvc.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<EnableDefaultEmbeddedResourceItems>False</EnableDefaultEmbeddedResourceItems>
88
<Product>GridMvc</Product>
99
<PackageId>GridMvcCore</PackageId>
10-
<Version>2.15.4</Version>
10+
<Version>2.15.5</Version>
1111
<Title>GridMvc</Title>
1212
<Description>ASP.NET MVC Grid component</Description>
1313
<Summary>ASP.NET MVC Grid component</Summary>

GridShared/GridShared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>8.0</LangVersion>
6-
<Version>2.15.3</Version>
6+
<Version>2.15.5</Version>
77
<Title>GridShared</Title>
88
<Description>Support library for GridBlazor and GridMvcCore component libraries</Description>
99
<Summary>Support library for GridBlazor and GridMvcCore component libraries</Summary>

docs/blazor_client/Selecting_row.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
There are 2 ways to configure selecting rows:
88
- using the ```Selectable``` method of the ```GridClient``` object
9-
- using the ```SetCheckboxColumn``` method on the column definition
9+
- using the ```SetCheckboxColumn``` or ```SetSingleCheckboxColumn``` methods on the column definition
1010

1111
## Selectable method
1212

@@ -137,4 +137,21 @@ This is an example of grid using ```SetCheckboxColumn```:
137137

138138
![](../images/Checkbox_column.png)
139139

140+
## SetSingleCheckboxColumn method
141+
142+
This case is very similar to the previous one, with the exception of only one checkbox selected at a time.
143+
When you select a checkbox, any other checkboxes are automatically unchecked.
144+
145+
You can add one or more columns with checkboxes on each row.
146+
147+
```c#
148+
c.Add("CheckboxColumn").SetSingleCheckboxColumn();
149+
c.Add(o => o.OrderID).SetPrimaryKey(true);
150+
```
151+
Columns defined in this way must be not connected ones (defined with ```Add()``` method). But they can have a name (defined with ```Add("columnName")``` method).
152+
153+
It's also mandatory to identify the columns that are primary keys for the grid. You must do it using the ```SetPrimaryKey(true)``` method for the primary key columns' definitions.
154+
155+
```SetSingleCheckboxColumn``` method has no parameters.
156+
140157
[<- Grouping](Grouping.md) | [Searching ->](Searching.md)

docs/blazor_odata/GridBlazor_configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ SetModifierKey | Configure the modifier key for keyboard navigation | GridClient
5757
EmptyText | Setup the text displayed for all empty items in the grid | GridClient<Order>(...).EmptyText(' - ');
5858
WithGridItemsCount | Allows the grid to show items count | GridClient<Order>(...).WithGridItemsCount();
5959
SetRowCssClasses | Setup specific row css classes | GridClient<Order>(...).SetRowCssClasses(item => item.Customer.IsVip ? "success" : string.Empty);
60+
UseODataExpand | Add subclasses to the list of items to be expanded with OData | GridClient<Order>(...).UseODataExpand(new List<string> { "Employee", "Shipper" });
61+
OverrideODataExpand | Override the list of subclasses to expand with OData | GridClient<Order>(...).OverrideODataExpand(new List<string> { "Employee", "Shipper" });
6062

6163
[<- Quick start](Quick_start.md) | [Keyboard navigation ->](Keyboard_navigation.md)

docs/blazor_odata/Selecting_row.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
There are 2 ways to configure selecting rows:
88
- using the ```Selectable``` method of the ```GridODataClient``` object
9-
- using the ```SetCheckboxColumn``` method on the column definition
9+
- using the ```SetCheckboxColumn``` or ```SetSingleCheckboxColumn``` methods on the column definition
1010

1111
## Selectable method
1212

@@ -104,7 +104,7 @@ It's also mandatory to identify the columns that are primary keys for the grid.
104104
- expression: it's a ```Func<T, bool>``` to define the initial value of the checkbox for each row
105105
- readonlyExpr (optional): it's a ```Func<T, bool>``` to configure the checkbox for each row as read only
106106

107-
**Important:** ```CheckedRows``` pr0perty is not available since release 1.6.2. ```CheckedRows``` only allowed to retrieve the checked values, but not to change them. Use the ```Checkboxes``` property instead of it.
107+
**Important:** ```CheckedRows``` property is not available since release 1.6.2. ```CheckedRows``` only allowed to retrieve the checked values, but not to change them. Use the ```Checkboxes``` property instead of it.
108108

109109
If you want to retrieve or change the checked values for each row, you can use the ```Checkboxes``` property of the ```GridComponent``` object.
110110
It is a dictionary that contains references to all checkbox components for each column.
@@ -137,4 +137,21 @@ This is an example of grid using ```SetCheckboxColumn```:
137137

138138
![](../images/Checkbox_column.png)
139139

140+
## SetSingleCheckboxColumn method
141+
142+
This case is very similar to the previous one, with the exception of only one checkbox selected at a time.
143+
When you select a checkbox, any other checkboxes are automatically unchecked.
144+
145+
You can add one or more columns with checkboxes on each row.
146+
147+
```c#
148+
c.Add("CheckboxColumn").SetSingleCheckboxColumn();
149+
c.Add(o => o.OrderID).SetPrimaryKey(true);
150+
```
151+
Columns defined in this way must be not connected ones (defined with ```Add()``` method). But they can have a name (defined with ```Add("columnName")``` method).
152+
153+
It's also mandatory to identify the columns that are primary keys for the grid. You must do it using the ```SetPrimaryKey(true)``` method for the primary key columns' definitions.
154+
155+
```SetSingleCheckboxColumn``` method has no parameters.
156+
140157
[<- Grouping](Grouping.md) | [Searching ->](Searching.md)

docs/blazor_server/Selecting_row.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
There are 2 ways to configure selecting rows:
88
- using the ```Selectable``` method of the ```GridClient``` object
9-
- using the ```SetCheckboxColumn``` method on the column definition
9+
- using the ```SetCheckboxColumn``` or ```SetSingleCheckboxColumn``` methods on the column definition
1010

1111
## Selectable method
1212

@@ -137,4 +137,21 @@ This is an example of grid using ```SetCheckboxColumn```:
137137

138138
![](../images/Checkbox_column.png)
139139

140+
## SetSingleCheckboxColumn method
141+
142+
This case is very similar to the previous one, with the exception of only one checkbox selected at a time.
143+
When you select a checkbox, any other checkboxes are automatically unchecked.
144+
145+
You can add one or more columns with checkboxes on each row.
146+
147+
```c#
148+
c.Add("CheckboxColumn").SetSingleCheckboxColumn();
149+
c.Add(o => o.OrderID).SetPrimaryKey(true);
150+
```
151+
Columns defined in this way must be not connected ones (defined with ```Add()``` method). But they can have a name (defined with ```Add("columnName")``` method).
152+
153+
It's also mandatory to identify the columns that are primary keys for the grid. You must do it using the ```SetPrimaryKey(true)``` method for the primary key columns' definitions.
154+
155+
```SetSingleCheckboxColumn``` method has no parameters.
156+
140157
[<- Grouping](Grouping.md) | [Searching ->](Searching.md)

docs/dotnetcore_blazor/Selecting_row.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
There are 2 ways to configure selecting rows:
88
- using the ```Selectable``` method of the ```GridClient``` object
9-
- using the ```SetCheckboxColumn``` method on the column definition
9+
- using the ```SetCheckboxColumn``` or ```SetSingleCheckboxColumn``` methods on the column definition
1010

1111
## Selectable method
1212

@@ -137,4 +137,21 @@ This is an example of grid using ```SetCheckboxColumn```:
137137

138138
![](../images/Checkbox_column.png)
139139

140+
## SetSingleCheckboxColumn method
141+
142+
This case is very similar to the previous one, with the exception of only one checkbox selected at a time.
143+
When you select a checkbox, any other checkboxes are automatically unchecked.
144+
145+
You can add one or more columns with checkboxes on each row.
146+
147+
```c#
148+
c.Add("CheckboxColumn").SetSingleCheckboxColumn();
149+
c.Add(o => o.OrderID).SetPrimaryKey(true);
150+
```
151+
Columns defined in this way must be not connected ones (defined with ```Add()``` method). But they can have a name (defined with ```Add("columnName")``` method).
152+
153+
It's also mandatory to identify the columns that are primary keys for the grid. You must do it using the ```SetPrimaryKey(true)``` method for the primary key columns' definitions.
154+
155+
```SetSingleCheckboxColumn``` method has no parameters.
156+
140157
[<- Grouping](Grouping.md) | [Searching ->](Searching.md)

0 commit comments

Comments
 (0)