Skip to main content
Nintex Community Menu Bar
Solved

Code to deselect first row in list view

  • September 16, 2020
  • 2 replies
  • 11 views
  • Translate

Hi All

 

Wonder if there any code gurus who could help on this request (or tell me if it's possible)

 

I'm using the script at the bottom of this post to automatiaclly select the first row of a list view (which is contained on a form).  This is so I can run the 'on click' event automatically without the user having to do anything.

 
However I'm now after some code to automatically deselect the first row (so a reverse)
 
Can anyone help?
Paul
 
================================================
<script>
$('div[name="PanelTitle"]').find($('td.first'))[0].click();
</script>
================================================

Best answer by Albarghouthy

Hi,


 


Try this script


<script>
var contentTable = $('.grid').find('.grid-body-content');
$(contentTable).find("tr:eq(0)").removeClass('highlighted selected');
</script>
View original
Did this topic help you find an answer to your question?

2 replies

Albarghouthy
Forum|alt.badge.img+16
  • Scholar
  • 741 replies
  • Answer
  • September 16, 2020

Hi,


 


Try this script


<script>
var contentTable = $('.grid').find('.grid-body-content');
$(contentTable).find("tr:eq(0)").removeClass('highlighted selected');
</script>
Translate

thanks Mustafa


Your code works perfectly - thanks

Paul

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings