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

Append menu item on columnmenuinit issue

3 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ming Cheng
Top achievements
Rank 1
Ming Cheng asked on 17 Nov 2016, 07:32 AM
Hi, I have appended a menu item on grid's columnmenuinit event.
But my new item won't close menu after select and the others will.
I have tried This and This . Hope someone can give me a hand.

3 Answers, 1 is accepted

Sort by
0
Ming Cheng
Top achievements
Rank 1
answered on 17 Nov 2016, 07:36 AM
Edit :  I have tried This(bind select event) And This(setOptions).
0
Ming Cheng
Top achievements
Rank 1
answered on 17 Nov 2016, 10:40 AM
Solved.
Just using destory function
0
Stephen
Top achievements
Rank 2
answered on 17 Nov 2016, 02:09 PM

Get a reference to the popup that is created and close that, i.e:

var popup = e.container.data().kendoPopup;
menu.bind("select", function (select) {
    grid.hideColumn(field);
    popup.close();
});

 

http://dojo.telerik.com/@Stephen/AKuwuQ

 

Tags
Grid
Asked by
Ming Cheng
Top achievements
Rank 1
Answers by
Ming Cheng
Top achievements
Rank 1
Stephen
Top achievements
Rank 2
Share this question
or