By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,009 Members | 2,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,009 IT Pros & Developers. It's quick & easy.

stumped...table row click event and then cancel the checkbox click

P: n/a
I have a html table and mutliple rows. On each row i put an onclick event
that opesn a modal window and prompts the user for some information.

I want this modal window to show when the user clicks anything on that row.
I have a few checkboxes in the row cells.

The click event first fires on the checkbox and then the row (opening the
modal window after the checkbox is checked).

How can I force the modal window to open first and cancel the onclick on the
checkbox????

Once the modal window has been opened i set a value on the row so that
future clicks do not open the modal window.

any help would be appreciated
dave
Sep 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dave,

I do not know how to cancel a triggered value edit on an unlocked
control except by an after update event or before update event or click
event. Maybe you may achieve what you need by one of the suggestions below:

Can you disable or lock the checkbox?
Can you convert the checkbox to an X in that column?

Failing both of those, you can just let the checkbox fire, and run event
handling code to check the value of the checkbox and revert it to what it
currently is not. If checked then uncheck, else check. Finally revert focus
back to modal window.

Or

Dump the row click and move the window launch to a sub procedure, do the
same as above with the check box (but skip the "revert" piece), then call
the launch window sub.

Either way, you get to the same destination.

~ Duane Phillips.

"dave" <da**@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
>I have a html table and mutliple rows. On each row i put an onclick event
that opesn a modal window and prompts the user for some information.

I want this modal window to show when the user clicks anything on that
row.
I have a few checkboxes in the row cells.

The click event first fires on the checkbox and then the row (opening the
modal window after the checkbox is checked).

How can I force the modal window to open first and cancel the onclick on
the
checkbox????

Once the modal window has been opened i set a value on the row so that
future clicks do not open the modal window.

any help would be appreciated
dave

Sep 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.