Lucas_Santos
Lucas_Santos

Reputation: 4740

Event OnClick of a Row in a GridView

I want to open a pop-Up with the openPopUp javascript command when the user click on a row in my GridView.

How can I do that ?

I saw some tips on c# gridview row click but how can I open a popUp on the row click ?

Upvotes: 0

Views: 737

Answers (1)

ShankarSangoli
ShankarSangoli

Reputation: 69905

openPopUp is not a JavaScript api. You might have seen it is some plugin or somewhere else. May be you are looking for window.open().

If you want to see how we can listen to row click event in a gridView you can try this.

$('#gridViewId tr').click(function(){
    //code here
    window.open(...);
});

Upvotes: 1

Related Questions