Skip to content

Commit 0005425

Browse files
ES-976509 - Resolved the ReadMe file changes in the sample repository
1 parent 74cd2e3 commit 0005425

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4337
-2
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Secret Value found!!
2+
on:
3+
push:
4+
public:
5+
jobs:
6+
scan:
7+
name: gitleaks
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/[email protected]
12+
- name: Install the gitleaks
13+
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
14+
shell: pwsh
15+
- name: Extract the tar file
16+
run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz
17+
- name: Generate the report
18+
id: gitleaks
19+
run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json
20+
shell: bash
21+
continue-on-error: true
22+
- name: Setup NuGet.exe
23+
if: steps.gitleaks.outcome != 'success'
24+
uses: nuget/setup-nuget@v2
25+
with:
26+
nuget-version: latest
27+
- name: Install Mono
28+
if: steps.gitleaks.outcome != 'success'
29+
run: |
30+
sudo apt update
31+
sudo apt install -y mono-complete
32+
- name: Install the dotnet SDK to a custom directory
33+
if: steps.gitleaks.outcome != 'success'
34+
run: |
35+
mkdir -p $GITHUB_WORKSPACE/dotnet
36+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0
37+
- name: Install the report tool packages
38+
if: steps.gitleaks.outcome != 'success'
39+
run: |
40+
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
41+
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
42+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0
43+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
44+
exit 1
38.7 KB
Loading
40.3 KB
Loading

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
1-
# how-to-hide-the-detailsview-expander-icon-based-on-child-records-count-wpf-datagrid
2-
This example illustrates how to hide the detailsview expander icon based on child records count.
1+
# How to Hide the DetailsView Expander Icon Based on Child Records Count in WPF / UWP DataGrid?
2+
3+
This example illustrates how to hide the detailsview expander icon based on child records count in [WPF DataGrid](https://www.syncfusion.com/wpf-controls/datagrid) and [UWP DataGrid](https://www.syncfusion.com/uwp-ui-controls/datagrid) (SfDataGrid).
4+
5+
By default, the state of expander icon is visible for all the data rows in parent DataGrid even if its **RelationalColumn** property has an empty collection or null.
6+
7+
You can customize hiding the details view expander icon by handling the **SfDataGrid.QueryDetailsViewExpanderState** event. This event occurs when expander icon is changed on expanding or collapsing the details view. You can hide the expander icon by setting the **ExpanderVisibility** property to `false` in the **SfDataGrid.QueryDetailsViewExpanderState** event based on condition.
8+
9+
``` c#
10+
this.dataGrid.QueryDetailsViewExpanderState += DataGrid_QueryDetailsViewExpanderState;
11+
private void DataGrid_QueryDetailsViewExpanderState(object sender, Syncfusion.UI.Xaml.Grid.QueryDetailsViewExpanderStateEventArgs e)
12+
{
13+
var orderInfo = e.Record as OrderInfo;
14+
if (orderInfo != null)
15+
{
16+
if (orderInfo.OrderDetails.Count == 0)
17+
{
18+
e.ExpanderVisibility = false;
19+
}
20+
}
21+
}
22+
```
23+
24+
The following screenshot illustrates how to hide the state of expander icon based on child items count.
25+
26+
#### WPF DataGrid Image:
27+
28+
![Details view DataGrid with expander icon hidden in WPF](DetailsViewDataGridWithHiddenExpanderWPF.png)
29+
30+
#### UWP DataGrid Image:
31+
32+
![Details view DataGrid with expander icon hidden in UWP](DetailsViewDataGridWithHiddenExpanderUWP.png)

UWP/DetailsView.sln

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.168
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DetailsView", "DetailsView\DetailsView.csproj", "{B8AC1FEE-6E17-4B83-85DA-2104800B0549}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM = Debug|ARM
11+
Debug|ARM64 = Debug|ARM64
12+
Debug|x64 = Debug|x64
13+
Debug|x86 = Debug|x86
14+
Release|ARM = Release|ARM
15+
Release|ARM64 = Release|ARM64
16+
Release|x64 = Release|x64
17+
Release|x86 = Release|x86
18+
EndGlobalSection
19+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
20+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|ARM.ActiveCfg = Debug|ARM
21+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|ARM.Build.0 = Debug|ARM
22+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|ARM.Deploy.0 = Debug|ARM
23+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|ARM64.ActiveCfg = Debug|ARM64
24+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|ARM64.Build.0 = Debug|ARM64
25+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|ARM64.Deploy.0 = Debug|ARM64
26+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|x64.ActiveCfg = Debug|x64
27+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|x64.Build.0 = Debug|x64
28+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|x64.Deploy.0 = Debug|x64
29+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|x86.ActiveCfg = Debug|x86
30+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|x86.Build.0 = Debug|x86
31+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Debug|x86.Deploy.0 = Debug|x86
32+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|ARM.ActiveCfg = Release|ARM
33+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|ARM.Build.0 = Release|ARM
34+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|ARM.Deploy.0 = Release|ARM
35+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|ARM64.ActiveCfg = Release|ARM64
36+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|ARM64.Build.0 = Release|ARM64
37+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|ARM64.Deploy.0 = Release|ARM64
38+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|x64.ActiveCfg = Release|x64
39+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|x64.Build.0 = Release|x64
40+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|x64.Deploy.0 = Release|x64
41+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|x86.ActiveCfg = Release|x86
42+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|x86.Build.0 = Release|x86
43+
{B8AC1FEE-6E17-4B83-85DA-2104800B0549}.Release|x86.Deploy.0 = Release|x86
44+
EndGlobalSection
45+
GlobalSection(SolutionProperties) = preSolution
46+
HideSolutionNode = FALSE
47+
EndGlobalSection
48+
GlobalSection(ExtensibilityGlobals) = postSolution
49+
SolutionGuid = {AF6807C6-E9BA-4994-A32A-5C2CCF6C45E3}
50+
EndGlobalSection
51+
EndGlobal
312 KB
Binary file not shown.

UWP/DetailsView/.vs/DetailsView/v15/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)