Add/remove columns during runtime in angular app

4 posts, 0 answers
  1. Aroussos
    Aroussos avatar
    2 posts
    Member since:
    Mar 2017

    Posted 04 Jul 2017 Link to this post

    How can I add or remove columns during runtime in an Kendo UI Angular grid?

    Right now I call the ngInit after setting the new columns but it seems like not the best option.

     

    Any ideas?

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 06 Jul 2017 Link to this post

    Hello Aroussos,

    If you want to change the columns structure dynamically you need to reinitialize the widget. In the context of AngularJS you could use the k-rebind to re-initialize the widget when the options are changed:
    Hope this helps.


    Regards,
    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Aroussos
    Aroussos avatar
    2 posts
    Member since:
    Mar 2017

    Posted 06 Jul 2017 in reply to Konstantin Dikov Link to this post

    Hello Konstantin,

    thanks for the info w but would appreciate if you could propose a solution for Angular 2 instead of AngularJS.

    Thanks in advance

  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 10 Jul 2017 Link to this post

    Hello,

    What we can suggest is to use our native components for Angular 2. Please check Kendo UI for Angular site for demos and getting started articles. 

    Regards,
    Boyan Dimitrov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top