SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible in a SharePoint list to change the function behind the event 'select item' to open the modal dialog with DispForm.aspx?

So in a list, when you click on a item -> the row gets darkblue, the checkbox gets checked and the ribbon appears. If you want to open the DispForm dialog, you have to click on the linked column. I want to open the DispForm by clicking on whole blue row.

Maybe with JQUERY AOP?

share|improve this question
It is possible. Seen it been done a couple times. But I believe it depends on if it's only for 1 list or several. – Daniel Ziga Dec 20 '11 at 15:21

If you use the display with checkboxes, I think it is hard to do, because SharePoint already implements its own behaviors. You'll need not only to add yours, but also make sure they don't break your page by interfering with the existing ones.

If you display the list without checkboxes, then there is less SharePoint interaction and you'll be safer, you can then include your own add-ons with JavaScript/jQuery.

share|improve this answer

try this code

$('.ms-itmhover').click(function () {
    var aLink = $('a[onclick*="E"', $(this).parents('tr:eq(0)'));
    eval(aLink.attr('onclick').replace('this', 'aLink[0]').replace('return', '//return')); 

just put the code in the listview page with a contenteditor webpart, it will works!

share|improve this answer --

check this URL it may be helps.

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – John Chapman Oct 17 '12 at 14:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.