I have a gridview (DXperience gridview) where I would like to display if the user has already clicked on a link in that row. The link on each row sends the user to a page where more detail is shown about the item. To symbolize this I have thought of e.g. making the background of the visited rows in a different colour.
My question is what is the easiest and most efficient way to do this?
My Idea: Since there is no login system I have thought of saving the IDs of the items in a cookie seperated by comma, and when rendering the rows I will look in the cookie to see if that item is already viewed.
I have a concern on how slow this will make the gridview. I am usually displaying a few thousand rows and if the user has clicked on maybe 40 items, it will take a while to run through 40 items on each row, to check if it is already viewed. Is this a valid concern, and if yes, how could I optimize it?