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. 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 ? 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. 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. 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 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. 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]); }) } }); } 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. 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? 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 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]); }) } }) } }); } 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now