Hi,
I'm trying to implement hover menu extender on server side.
First i create the panel with a table and 2 controls (image and linkButton), then the hover menu as follows:
Label lbl = new Label();
lbl.ID = "lblAgree" + i;
// Create panel
Panel popupPnl = new Panel(); ;
popupPnl.ID = "pnl1";
// Create table, row and cells
Table tbl = new Table();
TableRow row = new TableRow();
TableCell photoCell = new TableCell();
TableCell nameCell = new TableCell();
tbl.Rows.Add(row);
row.Cells.Add(photoCell);
row.Cells.Add(nameCell);
// Create Image
Image img = new Image();
string targetUserId = conv[i].UserId.ToString();
img.ImageUrl = Constants.DEFAULT_IMAGE_FILE;
img.CssClass = "hoverPnlImg";
photoCell.Controls.Add(img);
// Create Link Button
LinkButton lb = new LinkButton();
lb.Text = conv[i].FirstName + " " + conv[i].LastName;
lb.CommandArgument = user.UserId.ToString();
lb.CommandName = targetUserId;
nameCell.Controls.Add(lb);
popupPnl.Controls.Add(tbl);
// Create Hover menu extender
HoverMenuExtender hme = new HoverMenuExtender();
hme.ID = "hmeId1";
hme.TargetControlID = lbl.ID;
hme.PopupControlID = popupPnl.ID;
hme.PopupPosition = HoverMenuPopupPosition.Center;
hme.OffsetX = -10;
hme.PopDelay = 25;
hme.Enabled = true;
this.Repeater1.Controls.Add(lbl);
this.Repeater1.Controls.Add(hme);
my issue is that when i hover the mouse on the label "lbl", the panel does not come up.
Note that when i create a dummy panel on client side with the same controls (all are created on client side) it works fine.
Any ideas?
Thanks.