Reset toolbar back to load state

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    2 posts
    Member since:
    Jun 2012

    Posted 29 Aug Link to this post

    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

  2. Thomas
    Thomas avatar
    2 posts
    Member since:
    Jun 2012

    Posted 30 Aug in reply to Thomas Link to this post

    Answered here

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

  3. Kendo UI is VS 2017 Ready
Back to Top