Sep 02, 2006 02:52 AM|mattapayne|LINK
I need to show a modal popup (we're trying to create a lightbox effect) for each row in a gridview. What I'd like to do is have a single popup element on the page that is populated with row specific data just prior to popping up based on the value of the
selected row. I know that with the current modal popup extender I could kinda do this by adding an extender in the item template of the grid, but that would force (potentially) a whole lot of html to be generated and would also force me to populate the all
the popups while databinding more "basic" information to the grid.
What I'd really like to do is only pull the data that goes into the popup when it's requested.
I realize that this is likely not possible with the current implementation of the modal popup extender, but I am wondering if anyone has thoughts about how I might go about doing this.
The one idea that I had:
1. Using the modal popup extender as a starting point, create a new extender that accepts a gridview as its target control.
2. In the behavior script, get all the tr elements (maybe ignoring all th elements) and hook up onclick, etc.
some other stuff like MouseOverRowCssClass, MouseOutRowCssClass for look and feel effects.
Does this seem like a reasonable approach or is there a much simpler, more obvious way to achieve the same effect?