Premium support for our pure JavaScript UI components


Post by hltob »

Hello,

I am using the mergeCell feature for my use case, as you recommended last month in the following topic:

viewtopic.php?t=33545

In the resource cell, we have an icon with a tooltip and a click handler that is supposed to open a dialog box.
Now we are seeing the problem that either the tooltip works or the click handler works, but not both.

When the passthrough option is set to FALSE, the tooltip works, but the click handler does not.
When the passthrough option is set to TRUE, the tooltip does not work, but the click handler does.

I was able to reproduce this in the ‘Merge cells demo’:

...
    features : {
        // Enable merging cells
        mergeCells : {
            passthrough : true
        }
    },

listeners: {
    cellMousedown: ({column, record, event}) => {
        if (column.id === 'tt-resource-column-1' && event.target.closest('.b-merged-cell')) {
            console.log('*** clicked merged cell!');
        }
    }
},

columns : [
    {
        ...
        // first column
        id: 'tt-resource-column-1',
        renderer: ({record, value}) => {
            const tpl = document.createElement('div');
            tpl.className = 'tt-test';
            tpl.innerHTML = `Test <i data-btip="Custom tooltip" class="b-fa-solid b-fa-user-tag"></i>`;
            return tpl;
        }
         ...
    }
...

best regards
Tobias


Post by alex.l »

Hi Tobias,

What tooltip and what click are we talking about? Any chance to see a full code?
Any reason you used cellMousedown and not https://bryntum.com/products/grid/docs/api/Grid/view/mixin/GridElementEvents#event-cellClick ?
How did you implement a tooltip?

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post by hltob »

Hi Alex,

it doesn't matter which event I use, cellClick is not executed either.

I noted how I implemented the tooltip in the code above.

Here is the entire ts file of the customised merged-cell-demo ...

Attachments
merge-cell-demo.ts.zip
(1.95 KiB) Downloaded 317 times

Post by alex.l »

Yeh, sorry, didn't see the snippet is scrollable.
Did you try to use https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellTooltip for tooltips?

Tested here https://bryntum.com/products/grid/examples/merge-cells/



features : {
    cellTooltip : true,
    
    // ....

columns : [
    // This column merges by default
    { text : 'City', field : 'city', flex : 1, mergeCells : true, tooltipRenderer : ({ record }) => `My name is\xa0<b>${record.name}</b>` },

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post by hltob »

No, that's not a solution for us, as we need the tooltips for various icons and areas in the Resources section, not for the entire cell.

Can you confirm that this is a bug in the scheduler?


Post by alex.l »

Yes, that's a bug. Ticket: https://github.com/bryntum/support/issues/11745
You can subscribe on ticket updates to be notified when it's done.

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post by hltob »

Hello,

is there any news about the bug? When will it be fixed?

We still can not use tooltips for icons in the resource cells.


Post by alex.l »

Hi, no news yet, unfortunately. I commented a ticket for PM to notify about your request. We will try to increase the priority for this task.
Thank you for your patience!

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post by hltob »

Hello,

The bug we reported has been outstanding for over 8 months now, and nothing has been done about it.
Are there any plans to fix this bug?

Best regards


Post by marcio »

Hey hltob,

Sorry for the delay, but I see that the ticket is marked as resolved and should be released in the next patch (7.2.4).

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post Reply