Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
iggrid hover style
posted

Hi,

when i go with the pointer on one table cell all the row of my iggrid gets grey background. Every td gets ui-state--hover class.

Is it possible to highlight only one row on hover?

Parents
  • 17590
    Verified Answer
    Offline posted

    Hello Luca,

    Thank you for posting in our community.

    The reason why all rows get hovered, when you enter one of them with the mouse, is that there is no unique primary key set for the igGrid. These keys are used to differentiate data records and Selection feature uses them to identify on which row the hover style should be applied. Please try setting the primaryKey option to a column with unique values as following:

    //Initialize
    $(".selector").igGrid({
        primaryKey : "CustomerID"
    });

    Please let me know whether this helps you achieve your requirement.

Reply Children
No Data