TreeList with dynamic columns

4 posts, 0 answers
  1. Clinton Smyth
    Clinton Smyth avatar
    72 posts
    Member since:
    Apr 2007

    Posted 24 Jan 2019 Link to this post

    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

  2. Preslav
    Admin
    Preslav avatar
    574 posts

    Posted 28 Jan 2019 Link to this post

    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.
  3. chris
    chris avatar
    3 posts
    Member since:
    Mar 2007

    Posted 31 Jan 2019 in reply to Preslav Link to this post

    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

     

  4. Preslav
    Admin
    Preslav avatar
    574 posts

    Posted 01 Feb 2019 Link to this post

    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.
Back to Top