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

Reset toolbar back to load state

1 Answer 258 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 29 Aug 2016, 03:28 PM

I have two question I can't find the answers to;

Based on the following:

 $("#toolbar").kendoToolBar({
                items: [
                    {
                        type: "buttonGroup",
                        id: "FilterControls",
                        buttons: [
                            { id: "const", text: "Construction", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler},
                            { id: "lease", text: "Leasing", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler },
                            { id: "legal", text: "Legal", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler },
                            { id: "propt", text: "Property Management", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler }
                        ]
                    },
                    
                    { id: "mygreens", type: "button", text: "My Greens", spriteCssClass: "k-icon k-i-funnel", togglable: true, toggle: myToggleHandler },
                    { id: "clear", type: "button", text: "Clear", icon: "funnel-clear", click: filtClearall, togglable: false },
                    { is: "close", type: "button", text: "Close", spriteCssClass: "k-icon k-i-close", click: retOzone, togglable: false },
                ],
            });    

 

First how from the toggle event of the filter group can I tell the state of the mygreens toogle button

and secondly how do I reset the toolbar back to its initial state with no buttons selected, based on the button clear click

Cheers

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 30 Aug 2016, 03:12 PM

Answered here

http://stackoverflow.com/questions/39210462/kendo-toolbar-get-state-of-button-and-reset-to-load-state

Tags
Toolbar
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or