Lena Posted May 6, 2015 Posted May 6, 2015 Hi. Two questions about Sort Menu in the picture. Thanks. Quote
Sherzod Posted May 6, 2015 Posted May 6, 2015 Hi! Try (one way of): UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit: //hide() or destroy() 1. function beforeInit(sender, config) { Ext.onReady(function () { sender.headerCt.getMenu().items.items[2].hide(); //separator sender.headerCt.getMenu().items.items[3].hide(); }); } 2. function beforeInit(sender, config) { Ext.onReady(function () { sender.headerCt.getMenu().items.items[3].menu.items.items[0].hide(); //ID }); } Best regards! Quote
mehmet07 Posted May 6, 2015 Posted May 6, 2015 or for menu item hide, object inspector-->grid columns( tvcldbColumns[1] ) --> menu-->columnHideable-->false Quote
Lena Posted May 6, 2015 Author Posted May 6, 2015 or for menu item hide, object inspector-->grid columns( tvcldbColumns[1] ) --> menu-->columnHideable-->false Thank you for your help. I try it but it does not work for me. UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit: Thank you very much! Now it works! Quote
DEV_THS Posted April 4, 2019 Posted April 4, 2019 On 5/6/2015 at 8:25 AM, Sherzod said: Hi! Try (one way of): UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit: //hide() or destroy() 1. function beforeInit(sender, config) { Ext.onReady(function () { sender.headerCt.getMenu().items.items[2].hide(); //separator sender.headerCt.getMenu().items.items[3].hide(); }); } 2. function beforeInit(sender, config) { Ext.onReady(function () { sender.headerCt.getMenu().items.items[3].menu.items.items[0].hide(); //ID }); } Best regards! Sherzod, how are you? Could you help me on this? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.