Welcome Guest Search | Active Topics | Sign In | Register

detect a checkbox column selected in a grid Options
tim
Posted: Thursday, April 29, 2010 3:35:11 AM
Rank: Member
Groups: Member

Joined: 3/29/2009
Posts: 29
Code: Visual Basic.NET

Hi, I have a grid object that I am calling a user defined javascript function when the user selects a row. That works fine (using the javascript named in the ClientSideOnItemSelected property of grid).

Th Javascipt calls a popup window and passes the contents of column 1 to the URL of the popup.

However, I have a checkbox as one of the columns in the row and when the user checks the box, I don't want to do the popup. What is the best way to tackle this?

Is there a property of the grid that will define a user defined Javascript if the user selects a check box?

Thankyou kindly.
Angel
eo_support
Posted: Thursday, April 29, 2010 9:29:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe you can handle the checkbox columns' ClientSideEndEdit so that you can be notified when user selects a checkbox. Make sure you have the latest build because that was only implemented very recently.

Thanks!
tim
Posted: Friday, April 30, 2010 2:48:25 AM
Rank: Member
Groups: Member

Joined: 3/29/2009
Posts: 29
Code: Visual Basic.NET

Thankyou for the quick response!
Yes, I see that option and I have made a simple javascipt frunction that calls an alert.
However, it only seems to get called if the user makes a change in the checkbox.

What I really need to know is simply if they have clicked on the area of the table that contains a checkbox. If they do this, I don't want to call the Javascript specified in
ClientSideOnItemSelected.

ie I want to limit the part of the row that is creating the popup.

Thanks.

... Maybe I need to tackle this a different way?


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.