From 4dc52476e4ab5914136a4ce8f1a32c27000812fc Mon Sep 17 00:00:00 2001 From: Sanjai-SF5070 Date: Wed, 12 Aug 2026 17:26:55 +0530 Subject: [PATCH 1/3] 1046383: Included Row Index file under How to topic --- Jenkinsfile | 21 ++--- .../blazor/tree-grid/how-to/row-cell-index.md | 90 +++++++++++++++++++ grid-toc.html | 1 - 3 files changed, 97 insertions(+), 15 deletions(-) create mode 100644 grid-sdk/blazor/tree-grid/how-to/row-cell-index.md diff --git a/Jenkinsfile b/Jenkinsfile index 331da16d4..b28708037 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,14 +2,14 @@ node('content') { timestamps { - - def Content=""; - env.PATH = "${ProgramFiles}"+"\\Git\\mingw64\\bin;${env.PATH}" - timeout(time: 7200000, unit: 'MILLISECONDS') { -String platform='grid-sdk'; +String platform='file-formats'; try { + + def Content=""; + env.PATH = "${ProgramFiles}"+"\\Git\\mingw64\\bin;${env.PATH}" + //Clone scm repository in Workspace source directory stage ('Checkout') { @@ -17,11 +17,11 @@ String platform='grid-sdk'; { checkout scm - def page = 1 while(true) { def branchCommit = 'https://api.github.com/repos/syncfusion-content/'+env.githubSourceRepoHttpUrl.split('/')[env.githubSourceRepoHttpUrl.split('/').size() - 1]+'/pulls/' + env.pullRequestId + '/files?per_page=100^&page='+ page + String branchCommitDetails = bat returnStdout: true, script: 'curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit def ChangeFiles= branchCommitDetails.split('"filename": '); @@ -53,7 +53,6 @@ String platform='grid-sdk'; checkout([$class: 'GitSCM', branches: [[name: '*/development']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spellchecker']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: env.githubCredentialId, url: 'https://github.com/syncfusion-content/ug_spellchecker.git']]]) } - } catch(Exception e) @@ -71,12 +70,6 @@ if(currentBuild.result != 'FAILURE') bat 'powershell.exe -ExecutionPolicy ByPass -File '+env.WORKSPACE+"/ug_spellchecker/build.ps1 -Script "+env.WORKSPACE+"/ug_spellchecker/build.cake -Target build -Platform \""+platform+"\" -Targetbranch "+env.githubTargetBranch+" -Branch "+'"'+env.githubSourceBranch+'"' } - def files = findFiles(glob: '**/cireports/errorlogs/*.txt') - - if(files.size() > 0) - { - currentBuild.result = 'FAILURE' - } } catch(Exception e) @@ -95,4 +88,4 @@ if(currentBuild.result != 'FAILURE') } step([$class: 'WsCleanup']) } } -} +} \ No newline at end of file diff --git a/grid-sdk/blazor/tree-grid/how-to/row-cell-index.md b/grid-sdk/blazor/tree-grid/how-to/row-cell-index.md new file mode 100644 index 000000000..0c639bec3 --- /dev/null +++ b/grid-sdk/blazor/tree-grid/how-to/row-cell-index.md @@ -0,0 +1,90 @@ +--- +layout: post +title: Blazor TreeGrid Get Selected Row Cell Index Value | Syncfusion +description: Learn how to get the index value of a selected row cell in Blazor TreeGrid and use row and cell indexes for programmatic operations. +platform: Blazor +control: Tree Grid +documentation: ug +--- + +# Get Selected Row Cell Index Value in Blazor TreeGrid + +The index value of a selected row or cell in the Blazor TreeGrid component can be retrieved using the [GetSelectedRowCellIndexesAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_GetSelectedRowCellIndexesAsync) method of the TreeGrid component. + +The following example demonstrates how to use the [GetSelectedRowCellIndexesAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_GetSelectedRowCellIndexesAsync) method on a button click to return the selected row cell indexes. + +{% tabs %} + +{% highlight razor %} + +@using TreeGridComponent.Data; +@using Syncfusion.Blazor.Buttons; +@using Syncfusion.Blazor.Grids; +@using Syncfusion.Blazor.TreeGrid; + + + + + + + + + + + + + + +@code{ + SfTreeGrid TreeGrid; + + public List TreeGridData { get; set; } + + protected override void OnInitialized() + { + this.TreeGridData = TreeData.GetSelfDataSource().ToList(); + } + + public async Task SelectedRowCellIndex() + { + var value = await this.TreeGrid.GetSelectedRowCellIndexesAsync(); + } +} + +{% endhighlight %} + +{% highlight c# %} + +namespace TreeGridComponent.Data { + +public class TreeData + { + public int TaskId { get; set; } + public string TaskName { get; set; } + public int? Duration { get; set; } + public int? Progress { get; set; } + public string Priority { get; set; } + public int? ParentId { get; set; } + + public static List GetSelfDataSource() + { + List TreeDataCollection = new List(); + TreeDataCollection.Add(new TreeData() { TaskId = 1, TaskName = "Parent Task 1", Duration = 10, Progress = 70, Priority = "Critical", ParentId = null }); + TreeDataCollection.Add(new TreeData() { TaskId = 2, TaskName = "Child task 1", Progress = 80, Priority = "Low", Duration = 50, ParentId = 1 }); + TreeDataCollection.Add(new TreeData() { TaskId = 3, TaskName = "Child Task 2", Duration = 5, Progress = 65, Priority = "Critical", ParentId = 2 }); + TreeDataCollection.Add(new TreeData() { TaskId = 4, TaskName = "Child task 3", Duration = 6, Priority = "High", Progress = 77, ParentId = 3 }); + TreeDataCollection.Add(new TreeData() { TaskId = 5, TaskName = "Parent Task 2", Duration = 10, Progress = 70, Priority = "Critical", ParentId = null }); + TreeDataCollection.Add(new TreeData() { TaskId = 6, TaskName = "Child task 1", Duration = 4, Progress = 80, Priority = "Critical", ParentId = 5 }); + TreeDataCollection.Add(new TreeData() { TaskId = 7, TaskName = "Child Task 2", Duration = 5, Progress = 65, Priority = "Low", ParentId = 5 }); + TreeDataCollection.Add(new TreeData() { TaskId = 8, TaskName = "Child task 3", Duration = 6, Progress = 77, Priority = "High", ParentId = 5 }); + TreeDataCollection.Add(new TreeData() { TaskId = 9, TaskName = "Child task 4", Duration = 6, Progress = 77, Priority = "Low", ParentId = 5 }); + return TreeDataCollection; + } + } +} + +{% endhighlight %} + +{% endtabs %} + +> Note: To retrieve the row cell index value, the [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridSelectionSettings.html#Syncfusion_Blazor_TreeGrid_TreeGridSelectionSettings_Mode) property of the [TreeGridSelectionSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.TreeGridSelectionSettings.html) component must be set to **Cell**. diff --git a/grid-toc.html b/grid-toc.html index 78f1d4846..783fcbcad 100644 --- a/grid-toc.html +++ b/grid-toc.html @@ -1264,7 +1264,6 @@
  • Command Column Editing
  • Column Validation
  • Entity Framework
  • -
  • Auto Fill like Excel
  • From c623ce7406e1c337a9911688dd391f2f07ba18d9 Mon Sep 17 00:00:00 2001 From: Sanjai-SF5070 Date: Wed, 12 Aug 2026 17:28:50 +0530 Subject: [PATCH 2/3] 1046383: Committed changes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b28708037..21c895c96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ node('content') timestamps { timeout(time: 7200000, unit: 'MILLISECONDS') { -String platform='file-formats'; +String platform='grid-sdk'; try { From a80d52391382c466bf2c214c3bbd64aa3892a173 Mon Sep 17 00:00:00 2001 From: Sanjai-SF5070 Date: Wed, 12 Aug 2026 17:46:07 +0530 Subject: [PATCH 3/3] 1046383: Committed changes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 21c895c96..b28708037 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ node('content') timestamps { timeout(time: 7200000, unit: 'MILLISECONDS') { -String platform='grid-sdk'; +String platform='file-formats'; try {