Jump to content

Customize Sort Menu


Lena
 Share

Recommended Posts

Hi!

 

Try (one way of):

 

UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit:

 

//hide() or destroy()

 

1. 

function beforeInit(sender, config)
{   
  Ext.onReady(function () {
    sender.headerCt.getMenu().items.items[2].hide(); //separator
    sender.headerCt.getMenu().items.items[3].hide();
  });
}

2. 

function beforeInit(sender, config)
{   
  Ext.onReady(function () {
    sender.headerCt.getMenu().items.items[3].menu.items.items[0].hide(); //ID
  });
}

Best regards!

Link to comment
Share on other sites

or for menu item hide,

object inspector-->grid columns( tvcldbColumns[1] ) --> menu-->columnHideable-->false

 

Thank you for your help.

I try it but it does not work for me. :(

 

UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit:

 

Thank you very much!

Now it works!

Link to comment
Share on other sites

  • 3 years later...
On 5/6/2015 at 8:25 AM, Sherzod said:

Hi!

 

Try (one way of):

 

UniDBGrid1 -> ClientEvents -> UniEvents -> beforeInit:

 

//hide() or destroy()

 

1. 


function beforeInit(sender, config)
{   
  Ext.onReady(function () {
    sender.headerCt.getMenu().items.items[2].hide(); //separator
    sender.headerCt.getMenu().items.items[3].hide();
  });
}

2. 


function beforeInit(sender, config)
{   
  Ext.onReady(function () {
    sender.headerCt.getMenu().items.items[3].menu.items.items[0].hide(); //ID
  });
}

Best regards!

Sherzod, how are you?

Could you help me on this?
 

 

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.

 Share

×
×
  • Create New...