Hello,
I need to make an entire row be a link. How can I do this in iggrid?
Thanks.
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
I need to link it and pass in some parameters as well
window.location.href ='@Url.Action("Index", "LogicBroker", new { IDNumber = item.DocumentId, documentType = item.DocumentType, companyId = CompanyId, docId = DocId)
what do you mean by // 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?
Can you give me an example?
Thanks