add a glyph icon in a cell and a tooltip on hovering it

add a glyph icon in a cell and a tooltip on hovering it

karthikThirumurthykarthikThirumurthy Posts: 2Questions: 0Answers: 0

I want to add a glyph icon beside a cell which contains some data in a datatable. And on hovering through the glyph icon a text needs to be displayed from an other cell. Is it possible with datatables?!
Thank you!

Replies

  • allanallan Posts: 63,818Questions: 1Answers: 10,517 Site admin

    I don't foresee any issue with that in DataTables. You'd do it basically the same way as you would with a plain table. You could put the icon in the HTML (or use a renderer in DataTables if you want it to be dynamically added) and then apply whatever tooltip / hover code you want to display the message.

    Allan

  • karthikThirumurthykarthikThirumurthy Posts: 2Questions: 0Answers: 0

    Thanks a lot allan. It really worked well. But i have an other issue now! on clicking a button the the datatable gets loaded with 5000 data on the first go which seems to be fine. But again after changing the input parameters and clicking the button without refreshing the page the datatable gets struck. It gets hung! Is there a way to reslove this?!
    Thanks!

  • allanallan Posts: 63,818Questions: 1Answers: 10,517 Site admin

    I would need a link to the page showing the issue to be able to have any chance of understand what is going wrong there.

    Allan

This discussion has been closed.