From 5fe707ea72cf1f62ab43ee79e6def1bb67f3e327 Mon Sep 17 00:00:00 2001 From: Raghav-Sudhakar Date: Mon, 7 Nov 2022 19:20:57 +0530 Subject: [PATCH 1/6] WF-64663-Updated README.md file. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e2379d..3621c01 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # How-to-select-the-item-through-index-in-WF-SfComboBox -This respository contains the sample that how to select the item through index in WF SfComboBox control. +This respository contains the sample that how to select the item through index in WF SfComboBox control. For more details please refer [How to select the item thorugh index index in SfComboBox](https://www.syncfusion.com/kb/12171/how-to-select-the-item-through-index-in-winforms-sfcombobox). From 4450284679e61697727217dc0d09b2d1d539c1e9 Mon Sep 17 00:00:00 2001 From: Raghav-Sudhakar Date: Mon, 14 Nov 2022 18:03:06 +0530 Subject: [PATCH 2/6] WF-64663-Updated Content and Images. --- README.md | 4 +++- .../Image/Select item through index.png | Bin 2 files changed, 3 insertions(+), 1 deletion(-) rename output.png => SfComboBox_Selection_C#/Image/Select item through index.png (100%) diff --git a/README.md b/README.md index 3621c01..1745063 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # How-to-select-the-item-through-index-in-WF-SfComboBox -This respository contains the sample that how to select the item through index in WF SfComboBox control. For more details please refer [How to select the item thorugh index index in SfComboBox](https://www.syncfusion.com/kb/12171/how-to-select-the-item-through-index-in-winforms-sfcombobox). +Index of the selected item can be retrieved by using the SelectedIndex property. For more details please refer [How to select the item thorugh index index in SfComboBox](https://www.syncfusion.com/kb/12171/how-to-select-the-item-through-index-in-winforms-sfcombobox). + +![Select Item through Index](SfComboBox_Selection_C#/Image/Select%20item%20through%20index.png) diff --git a/output.png b/SfComboBox_Selection_C#/Image/Select item through index.png similarity index 100% rename from output.png rename to SfComboBox_Selection_C#/Image/Select item through index.png From 746140447d1eea45d45ba784dbad0d0b82dfb771 Mon Sep 17 00:00:00 2001 From: Raghav-Sudhakar <93652178+Raghav-Sudhakar@users.noreply.github.com> Date: Tue, 29 Nov 2022 13:04:15 +0530 Subject: [PATCH 3/6] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 1745063..39a6f63 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,31 @@ # How-to-select-the-item-through-index-in-WF-SfComboBox Index of the selected item can be retrieved by using the SelectedIndex property. For more details please refer [How to select the item thorugh index index in SfComboBox](https://www.syncfusion.com/kb/12171/how-to-select-the-item-through-index-in-winforms-sfcombobox). +# C# + public Form1() + { + InitializeComponent(); + List list = GetData(); + SfComboBox sfComboBox1 = new SfComboBox(); + sfComboBox1.Size = new Size(150, 28); + sfComboBox1.Location = new Point(138, 56); + sfComboBox1.DataSource = list; + + //Bind the Display member and Value member to the data source + sfComboBox1.DisplayMember = "DispValue"; + sfComboBox1.ValueMember = "SfValue"; + sfComboBox1.ComboBoxMode = Syncfusion.WinForms.ListView.Enums.ComboBoxMode.SingleSelection; + sfComboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend; + sfComboBox1.AutoCompleteSuggestMode = Syncfusion.WinForms.ListView.Enums.AutoCompleteSuggestMode.Contains; + sfComboBox1.MaxDropDownItems = 10; + + //Select the item based on index + sfComboBox1.SelectedIndex = list[1].SfValue; + + //Select the item based on item + sfComboBox1.SelectedItem = list[1]; + this.Controls.Add(sfComboBox1); + } + + ![Select Item through Index](SfComboBox_Selection_C#/Image/Select%20item%20through%20index.png) From 367d2f557d38174717e09cf7bdeddc3524e0c775 Mon Sep 17 00:00:00 2001 From: Raghav-Sudhakar <93652178+Raghav-Sudhakar@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:09:09 +0530 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39a6f63..f22b3d5 100644 --- a/README.md +++ b/README.md @@ -27,5 +27,5 @@ Index of the selected item can be retrieved by using the SelectedIndex property. this.Controls.Add(sfComboBox1); } +![Select Index programatically](https://user-images.githubusercontent.com/93652178/204493571-d426dda0-9da9-4d63-aa24-50e99dd292f3.png) -![Select Item through Index](SfComboBox_Selection_C#/Image/Select%20item%20through%20index.png) From 9a0f5bdc70fa174e8bdac05608023a800988f3ef Mon Sep 17 00:00:00 2001 From: Raghav-Sudhakar <93652178+Raghav-Sudhakar@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:14:54 +0530 Subject: [PATCH 5/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f22b3d5..074195c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Index of the selected item can be retrieved by using the SelectedIndex property. For more details please refer [How to select the item thorugh index index in SfComboBox](https://www.syncfusion.com/kb/12171/how-to-select-the-item-through-index-in-winforms-sfcombobox). # C# + public Form1() { InitializeComponent(); From 241e2c5ee2e12ccf9e72878b3011e87fe639e857 Mon Sep 17 00:00:00 2001 From: SyncfusionBuild <89958145+SyncfusionBuild@users.noreply.github.com> Date: Tue, 24 Jan 2023 16:21:05 +0530 Subject: [PATCH 6/6] Gitleaks action file added --- .github/workflows/gitleaks.yaml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/gitleaks.yaml diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..48a24dd --- /dev/null +++ b/.github/workflows/gitleaks.yaml @@ -0,0 +1,38 @@ +name: Secret Value found! +on: + push: + public: +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install the gitleaks + run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz + shell: pwsh + - name: Extract the tar file + run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz + - name: Generate the report + id: gitleaks + run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json + shell: bash + continue-on-error: true + - name: Setup NuGet.exe + if: steps.gitleaks.outcome != 'success' + uses: nuget/setup-nuget@v1 + with: + nuget-version: latest + - name: Install the dotnet + if: steps.gitleaks.outcome != 'success' + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '3.1.x' + - name: Install the report tool packages + if: steps.gitleaks.outcome != 'success' + run: | + nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/" + dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1 + dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "citeam@syncfusion.com" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" + exit 1