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
445
make an entire row a link
posted

Hello,

 

I need to make an entire row be a link. How can I do this in iggrid?

 

Thanks.

Parents
No Data
Reply
  • 24671
    posted

    hi Jessica,

    you can use column templates in order to make every cell text point to the same URL, so no matter where they click, the grid will navigate to that row. Also , you can bind an event handler for every row, which, based on the primary key value (or some other field in the row?) , navigate to a different URL, something like:

    $("#grid1").find("tr").on("click", function () {

    // use primary key (data-id attribute), to lookup the data record from the data source, or some other info, in order to navigate to a URL

    });

    Hope it helps. Thanks,

    Angel

Children