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

Dynamic data...

1 Answer 60 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Ron Hary
Top achievements
Rank 2
Ron Hary asked on 23 Nov 2015, 11:38 AM

Hi,

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?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 25 Nov 2015, 09:06 AM
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.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Toolbar
Asked by
Ron Hary
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Share this question
or