We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tree Grid Row Selected

Thread ID:





131458 Jul 11,2017 05:38 AM UTC Jul 12,2017 05:59 PM UTC ASP.NET Core 1
Tags: TreeGrid
Asked On July 11, 2017 05:38 AM UTC

Hi Syncfusion Team

I'm using the treegrid to load the data from database as per below code, can you help me if want to capture the value when perform the row selected on the tree grid then set to the input / model / textboxfor

<ej-tree-grid id="TreeGridContainer" datasource="ViewBag.datasource" child-mapping="Children" tree-column-index="1"
                                  allow-filtering="true" allow-sorting="true" begin-edit="BeginEdit" is-responsive="true">
                            <e-tree-grid-column field="DiagnosisPartCode" header-text="Diagnosis Code" allow-filtering="true" edit-type="String" width=45 />
                            <e-tree-grid-column field="Text" header-text="Diagnosis Name" edit-type="String" filter-edit-type="String" />
                        <e-tree-grid-size-settings width="100%" height="350px" />
                        <e-tree-grid-edit-settings allow-deleting="true"
                                                   edit-mode="CellEditing" />

Appreciate for your support.


Jonesherine Stephen [Syncfusion]
Replied On July 12, 2017 05:59 PM UTC

Hi Haryzad, 
Thanks for contacting Syncfusion support. 
By using “rowSelected” client side event we can perform any custom actions during row selection in TreeGrid. 
Please find the code example below: 
<ej-tree-grid id="TreeGridContainer" row-selected="rowSelected"></ej-tree-grid> 
<script type="text/javascript"> 
    function rowSelected(args) { 
        //Here we can perform any actions during row selection 
We have also prepared the sample based on this, please find the sample from below location. 
Jone sherine P S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon