Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

css for selected item in connected listview webparts

$
0
0

I have two listivew webparts on a page. One webpart is connected to another. i.e. It takes filter values from the first webpart so that when I select an item in first webpart (say Foo1) , it displays the corresponding item for the other webpart (foo2). I want to highlight the selected item in Foo1.

For this I have used the jquery

$("table[summary='Foo']").find("img[alt='Selected']").closest("tr").css("background-color","yellow");

But the problem with this is that everytime I paginate or filter or sort the webpart Foo1 , the selected item loses the background color.
How do I fix this?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>