A.Soltani 14 Posted January 9 Share Posted January 9 Hi How to get the double-click event of the UniDbGrid column header(only header and not cell or body)? Regards. Quote Link to post Share on other sites
irigsoft 17 Posted January 9 Share Posted January 9 Hi, Can You use OnTitleClick ? Quote Link to post Share on other sites
A.Soltani 14 Posted January 9 Author Share Posted January 9 Hi Is the OnTitleClick event equal to double-clicking in the column header? Regards. Quote Link to post Share on other sites
irigsoft 17 Posted January 9 Share Posted January 9 1 hour ago, A.Soltani said: Hi Is the OnTitleClick event equal to double-clicking in the column header? Regards. No. Quote Link to post Share on other sites
Sherzod 1183 Posted January 9 Share Posted January 9 3 hours ago, A.Soltani said: How to get the double-click event of the UniDbGrid column header(only header and not cell or body)? function afterrender(sender, eOpts) { sender.headerCt.el.on('dblclick', function() { ajaxRequest(sender, 'headerdblclick', []); }); } 2 Quote Link to post Share on other sites
A.Soltani 14 Posted January 13 Author Share Posted January 13 Hi How to get a double-clicked column index? Regards. Quote Link to post Share on other sites
Sherzod 1183 Posted January 13 Share Posted January 13 1 hour ago, A.Soltani said: How to get a double-clicked column index? Hi, function afterrender(sender, eOpts) { sender.headerCt.el.on('dblclick', function() { ajaxRequest(sender, 'headerdblclick', []); }); } function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col) { if (col.titleEl) { col.titleEl.on('dblclick', function() { ajaxRequest(sender, 'headerdblclick', ['colIndx=' + col.dataIndex]); }) } }); } Quote Link to post Share on other sites
A.Soltani 14 Posted January 19 Author Share Posted January 19 Hi If the column has a GroupHeader, the function will not work. Regards. Quote Link to post Share on other sites
Sherzod 1183 Posted January 19 Share Posted January 19 Hi, 7 minutes ago, A.Soltani said: If the column has a GroupHeader, the function will not work. Probably yes, will not work. Can you make a simple tescase with your grid settings? Quote Link to post Share on other sites
A.Soltani 14 Posted January 19 Author Share Posted January 19 Hi This is my TestCase. Regards. UniDBGridHeaderDblClick.rar Quote Link to post Share on other sites
Sherzod 1183 Posted January 19 Share Posted January 19 Hi, 14 minutes ago, A.Soltani said: This is my TestCase. Regards. UniDBGridHeaderDblClick.rar 1.39 MB · 0 downloads Thanks. Can you try to use this approach? function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col) { if (col.titleEl) { col.titleEl.on('dblclick', function() { ajaxRequest(sender, 'headerdblclick', ['colIndx=' + col.dataIndex]); }) } else if (col.columns) { col.columns.forEach(function(col) { if (col.titleEl) { col.titleEl.on('dblclick', function() { ajaxRequest(sender, 'headerdblclick', ['colIndx=' + col.dataIndex]); }) } }) } }); } Quote Link to post Share on other sites
A.Soltani 14 Posted January 31 Author Share Posted January 31 Hi, Thank you. Quote Link to post Share on other sites
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.