Ario.Paxaz Posted January 9, 2021 Share Posted January 9, 2021 Hi How to get the double-click event of the UniDbGrid column header(only header and not cell or body)? Regards. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted January 9, 2021 Share Posted January 9, 2021 Hi, Can You use OnTitleClick ? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted January 9, 2021 Author Share Posted January 9, 2021 Hi Is the OnTitleClick event equal to double-clicking in the column header? Regards. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted January 9, 2021 Share Posted January 9, 2021 1 hour ago, A.Soltani said: Hi Is the OnTitleClick event equal to double-clicking in the column header? Regards. No. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 9, 2021 Share Posted January 9, 2021 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 comment Share on other sites More sharing options...
Ario.Paxaz Posted January 13, 2021 Author Share Posted January 13, 2021 Hi How to get a double-clicked column index? Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2021 Share Posted January 13, 2021 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 comment Share on other sites More sharing options...
Ario.Paxaz Posted January 19, 2021 Author Share Posted January 19, 2021 Hi If the column has a GroupHeader, the function will not work. Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2021 Share Posted January 19, 2021 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 comment Share on other sites More sharing options...
Ario.Paxaz Posted January 19, 2021 Author Share Posted January 19, 2021 Hi This is my TestCase. Regards. UniDBGridHeaderDblClick.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2021 Share Posted January 19, 2021 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 comment Share on other sites More sharing options...
Ario.Paxaz Posted January 31, 2021 Author Share Posted January 31, 2021 Hi, Thank you. 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.