Hayri ASLAN Posted January 28, 2014 Posted January 28, 2014 hi, how to implement to dbgrid "menuDisabled:true" by Extevent? it will be good solution for use like that codes with extevents. for info : http://stackoverflow.com/questions/12107056/how-to-remove-picker-from-column-header-of-ext-js-grid Quote
Sherzod Posted January 28, 2014 Posted January 28, 2014 Hi Hayri Aslan. If I understand correctly, you can do it in DesignTime, as shown below: Quote
Hayri ASLAN Posted January 28, 2014 Author Posted January 28, 2014 hi Delphi Developer yes it is works. Thanks a lot. additionally can we do this with unisession.addjs ? Quote
Sherzod Posted January 28, 2014 Posted January 28, 2014 hi Delphi Developer yes it is works. Thanks a lot. additionally can we do this with unisession.addjs ? Separately (for columns) found a solution in runtime (I do not know can have the best solution). Try: hide: UniSession.AddJS('Ext.get('+UniDBGrid1.JSName+'.headerCt.columnManager.columns[0].id + "-triggerEl").hide();'); show: UniSession.AddJS('Ext.get('+UniDBGrid1.JSName+'.headerCt.columnManager.columns[0].id + "-triggerEl").show();'); remove: UniSession.AddJS('Ext.get('+UniDBGrid1.JSName+'.headerCt.columnManager.columns[0].id + "-triggerEl").dom.remove();'); Quote
Hayri ASLAN Posted January 28, 2014 Author Posted January 28, 2014 thank you very much for your interesting. Quote
Mediv07 Posted June 9, 2014 Posted June 9, 2014 Separately (for columns) found a solution in runtime (I do not know can have the best solution). Try: hide: UniSession.AddJS('Ext.get('+UniDBGrid1.JSName+'.headerCt.columnManager.columns[0].id + "-triggerEl").hide();'); show: UniSession.AddJS('Ext.get('+UniDBGrid1.JSName+'.headerCt.columnManager.columns[0].id + "-triggerEl").show();'); remove: UniSession.AddJS('Ext.get('+UniDBGrid1.JSName+'.headerCt.columnManager.columns[0].id + "-triggerEl").dom.remove();'); If I used frame with UniDBGrid1, how can I call UniSession.AddJS?? Thank you. Quote
Sherzod Posted June 9, 2014 Posted June 9, 2014 If I used frame with UniDBGrid1, how can I call UniSession.AddJS?? Thank you. Hi Mediv07. Can you clarify? Quote
Mediv07 Posted June 9, 2014 Posted June 9, 2014 Hi Mediv07. Can you clarify? When I call UniSession.AddJS inside TUniFrame get the error: Undeclared identifier. On UniForm all right, maybe I need to add some sort of module section Uses? Quote
Administrators Farshad Mohajeri Posted June 9, 2014 Administrators Posted June 9, 2014 Column->Menu->MenuEnabled Quote
Sherzod Posted June 9, 2014 Posted June 9, 2014 When I call UniSession.AddJS inside TUniFrame get the error: Undeclared identifier. On UniForm all right, maybe I need to add some sort of module section Uses? add uniGUIApplication in uses section uses ... uniGUIApplication ... 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.