Harry Rogers Posted February 5, 2018 Share Posted February 5, 2018 How to provide the list of columns to show but hide the greyed-out sort options in the Column header menu of a Unibdgrid? Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 5, 2018 Share Posted February 5, 2018 Hi, One possible solution, can you try this ?!: UniDBGrid -> ClientEvents -> ExtEvents -> function reconfigure: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { sender.headerCt.getMenu().items.each( function(item){ if (item.itemId != 'columnItem') item.hide() } ); } Best regards, 1 Quote Link to comment Share on other sites More sharing options...
Harry Rogers Posted February 6, 2018 Author Share Posted February 6, 2018 That's great - thanks n.b. Already had this (to get ideal column widths) columns.forEach(function(el){el.flex=1}) in the reconfigure function. need to ensure this is now called after the sender.headerCt.getMenu...... to avoid an ajax undefined error 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.