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. Image for the cookie policy date

Tree grid in inline edit with dropdown boxes

When i'm in edit mode  I want the cells to have dropdown boxes that are populated from the database with dynamic data.

How is this done ? All I have managed to do is like this

<ej:TreeGridColumn Field="DataElement" HeaderText="&#10004;" EditType="Dropdown">
                            <ej:KeyValue Key="0" Value="0" />
                            <ej:KeyValue Key="1" Value="1" />
                            <ej:KeyValue Key="2" Value="2" />
                            <ej:KeyValue Key="3" Value="3" />
                            <ej:KeyValue Key="4" Value="4" />
                            <ej:KeyValue Key="5" Value="5" />

but I need to from the database.

1 Reply

JA Jesus Arockia Sankaran S Syncfusion Team November 20, 2018 12:05 PM UTC

Hi David, 
Thank you for contacting Syncfusion support. 
We have analyzed your requirement, and we insist you share the details that whether you need to change the dropdown data dynamically while editing the TreeGrid column which helps us to provide you a better solution. Now, We have prepared the sample to assign the value to dropdown column from the database table on initial loading.  

Also, get back to us if you require any further assistance on this. 
Jesus Arockia Sankaran S 

Live Chat Icon For mobile
Up arrow icon