views:

26

answers:

1

How to open popupwindow while clicking on Display tag column.

I have popupSmallWindow(this, 'update') javascript to open the popup. i need to call this from display tag.while clicking this below column.

paramName  = "propertyTypeId"
Value = propertyType.propertyTypeId
action= editType.action

And need to call popupSmallWindow(this, 'update')

<displayEL:column property="propertyType.propertyTypeName" 
                        titleKey="common.propertytype" sortable="true" style="width:30%" />

plz help o this.

A: 

You're going to have to write Javascript code to find the column(s) after the page loads. Give the column a class value like "popupHere", and then in your "load" handler you can add a click handler to the cell.

Pointy
But i tried defining url inside it for <a href="#" onclick="popupSmallWindow(this, 'update')">content</a> and it worked. But sorting is not working properly. its misbehaving..
Jothi
Well it's going to sort by the actual contents of the table cell. You can give the tag a "sortProperty" attribute and see if that helps.
Pointy
Hi Pointy,great, thanks.It worked.
Jothi