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

TreeList with dynamic columns

3 Answers 120 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Clinton Smyth
Top achievements
Rank 1
Clinton Smyth asked on 24 Jan 2019, 10:51 PM

Hello

Is there a way to add/remove/edit TreeList columns dynamically? We need to allow the user to manipulate the columns and the data in them.

Thanks

3 Answers, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 28 Jan 2019, 09:00 AM
Hi Clinton,

Based on your post, I believe that your application requires having a TreeList that can show/hide its columns. Also, the TreeList should be editable. Please, correct me if I am wrong.

To show and hide columns, use a Column menu:
To edit the records, enable the editing:

Regards,
Preslav
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
chris
Top achievements
Rank 1
answered on 01 Feb 2019, 03:00 AM

Thanks for the links, however, this is not how our app works.

Our app requires that the user can dynamically create any number of columns they wish at run time, so it's not just a matter of hiding/unhiding columns. They specify a column name and select a potential list of values that can be populated in this column. They can also update this list of possible values and assign them to rows in the TreeList as they progress their work in the app.

Is there perhaps some jQuery that can achieve this?

Thanks

 

0
Preslav
Telerik team
answered on 01 Feb 2019, 11:57 AM
Hello Chris,

Generally speaking, the TreeList does not support setting dynamic options out-of-the-box. The only thing that I could suggest is destroying and recreating the widget with the new configuration options. 

For example, check this test Dojo:
I hope the above is useful.


Regards,
Preslav
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TreeList
Asked by
Clinton Smyth
Top achievements
Rank 1
Answers by
Preslav
Telerik team
chris
Top achievements
Rank 1
Share this question
or