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 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: 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 ? 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();'); 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. 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. 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? 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? 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 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 ... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now