Pergunta

I want to fire Click event on my other web part when I select the item in LV web part.

Foi útil?

Solução

You can use Jquery To execute script when the list item has been selected by doing the following

  • Edit Page.
  • Add Script Editor.
<script src="https://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {

        $(".ms-listviewtable > tbody > tr").click(function(){
            alert("write the code here");
        });       
    });   
</script>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top