This is a migrated thread and some comments may be shown as answers.

Get parent columns data while creating child on editformtemplate

1 Answer 58 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sapan
Top achievements
Rank 1
Sapan asked on 28 Jun 2016, 02:18 PM

Hi, 

I am using treelist to show heirachical data. 

Both parent and child are stored in same table 

Sample tables: 

SampleTable

  1. id 
  2. parent id 
  3. category id (drop down on editformtemplate)
  4. description

When I am creating a child, the parent category id needs to be shown on edit form template

and when a new parent is being created it should allow user to select the value.

I am using hybrid approach of automatic CRUD operation and using formtemplate

Can this be done?

 

Regards, 

Swapnil

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 01 Jul 2016, 10:54 AM
Hello Swapnil,

Note that in order to use automatic operations the TreeList must be bound to a declarative DataSource control. Moreover the data source should support such operations and they need to be configured.


In case you need to implement a more complex scenario with templates it is recommended to update the data source manually.

Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TreeList
Asked by
Sapan
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or