{"action":"closed","issue":{"url":"https://api.github.com/repos/vitmalina/w2ui/issues/1274","repository_url":"https://api.github.com/repos/vitmalina/w2ui","labels_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1274/labels{/name}","comments_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1274/comments","events_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1274/events","html_url":"https://github.com/vitmalina/w2ui/issues/1274","id":161845466,"number":1274,"title":"show selected menu item text in menu caption","user":{"login":"laalu","id":20103866,"avatar_url":"https://avatars.githubusercontent.com/u/20103866?v=3","gravatar_id":"","url":"https://api.github.com/users/laalu","html_url":"https://github.com/laalu","followers_url":"https://api.github.com/users/laalu/followers","following_url":"https://api.github.com/users/laalu/following{/other_user}","gists_url":"https://api.github.com/users/laalu/gists{/gist_id}","starred_url":"https://api.github.com/users/laalu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laalu/subscriptions","organizations_url":"https://api.github.com/users/laalu/orgs","repos_url":"https://api.github.com/users/laalu/repos","events_url":"https://api.github.com/users/laalu/events{/privacy}","received_events_url":"https://api.github.com/users/laalu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-23T05:53:19Z","updated_at":"2016-07-04T17:40:14Z","closed_at":"2016-07-04T17:40:14Z","body":"have a menu caption \"selectMenu\" and contains subitems(item1,item2,item3)\r\nif i click on any item then menu caption should be changed to selected item text\r\nhow can i do this ,please give me solution of this\r\n\r\n\r\n```\r\n$('#grid').w2grid({ \r\n        name: 'TestGrid',\r\n                header: 'Test',\r\n                multiSelect: true,\r\n                show: {\r\n                    toolbar: true,\r\n                    header: true,\r\n                    footer: true,\r\n                    lineNumbers: false,\r\n                    selectColumn: false,\r\n                    toolbarDelete: false,\r\n                    toolbarReload: false,\r\n                    toolbarSearch: false,\r\n                    toolbarColumns: false\r\n                },\r\n                toolbar: {\r\n                    items: [\r\n\r\n                        { type: 'menu',   id: 'selectMenu', caption: 'selectMenu',items: [{ text: 'Item 1'},{ text: 'Item 2'},{ text: 'Item 3' }]}\r\n                    ],\r\n                    onClick: function (target, eventData) {\r\n                        if (eventData.subItem) {\r\n                            if (eventData.target.substr(0, eventData.target.indexOf(\":\")) == 'selectMenu') {\r\n\r\n                                alert('selectMenu' + ' ' + eventData.subItem.id + ' ' + eventData.subItem.text + ' ' + eventData.target.substr(0, eventData.target.indexOf(\":\")));                          \r\n                            }\r\n                            else if (eventData.target.substr(0, eventData.target.indexOf(\":\")) == 'allNetworks') {\r\n                                alert('hi' + ' ' + eventData.subItem.id + ' ' + eventData.subItem.text + ' ' + eventData.target.substr(0, eventData.target.indexOf(\":\")));\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n\r\n    });\r\n```\r\n\r\n\r\nthank you\r\n\r\n\r\n![untitled](https://cloud.githubusercontent.com/assets/20103866/16293112/ca896938-3934-11e6-9419-9a07e2bd5411.jpg)\r\n"}}
{"actor":{"display_login":"mrg2001"}}