Hayri ASLAN Posted January 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 28, 2014 Share Posted January 28, 2014 Hi Hayri Aslan. If I understand correctly, you can do it in DesignTime, as shown below: Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 28, 2014 Author Share Posted January 28, 2014 hi Delphi Developer yes it is works. Thanks a lot. additionally can we do this with unisession.addjs ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 28, 2014 Author Share Posted January 28, 2014 thank you very much for your interesting. Quote Link to comment Share on other sites More sharing options...
Mediv07 Posted June 9, 2014 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 9, 2014 Share Posted June 9, 2014 If I used frame with UniDBGrid1, how can I call UniSession.AddJS?? Thank you. Hi Mediv07. Can you clarify? Quote Link to comment Share on other sites More sharing options...
Mediv07 Posted June 9, 2014 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 9, 2014 Administrators Share Posted June 9, 2014 Column->Menu->MenuEnabled Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 9, 2014 Share 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 Link to comment Share on other sites More sharing options...
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.