Dynamic data...

2 posts, 0 answers
  1. Ron Hary
    Ron Hary avatar
    44 posts
    Member since:
    Jun 2005

    Posted 23 Nov 2015 Link to this post


    I'm using Menu to navigate at this point and initialize it with dynamic data, that depends on the current user logged-in, using this line:

    this.Menu.setOptions({ dataSource: $.parseJSON(JSON.stringify(this.BindingSource._tableItem.Rows)) });

    What I need is collapsing, so I think to replace the Menu with Toolbar, but can't find a way to initialize the Toolbar at run-time, except to run a series of different add commands...I'm more interested to bind it to some data (JSON)...

    How can I do that?

  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 25 Nov 2015 Link to this post

    Hello Ron,

    The toolbar items are defined with a JSON structure, you may find example in this help article. In case you want to completely change the tools of an already initialised ToolBar you should at first destroy it, empty the ToolBar container and re-initialise it with the new settings.

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top