Jump to content

how to implement to DBGrid "menuDisabled:true"


Hayri ASLAN

Recommended Posts

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

  • 4 months later...

 

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...