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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...