Hi,
I am using PopupExtender. In Rad grid, in each row I have an image button.. While clicking that am opening the pop extender. Its working fine. But am filling grid in a button click event which will throw a javascript confirm alert. if i press yes then in postback i will rebind the grid.. After binding, Pop up extender is not displayed if we click the image in rad grid.. i have placed the code in Item data bound also for associating the image button with pop up extender. but still its not working. How to overcome this issue?
Thanks
Esther
I am using PopupExtender. In Rad grid, in each row I have an image button.. While clicking that am opening the pop extender. Its working fine. But am filling grid in a button click event which will throw a javascript confirm alert. if i press yes then in postback i will rebind the grid.. After binding, Pop up extender is not displayed if we click the image in rad grid.. i have placed the code in Item data bound also for associating the image button with pop up extender. but still its not working. How to overcome this issue?
protected void gridViewResourceList_ItemDataBound(object sender, GridItemEventArgs e)
{
try
{
if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
{
PopupControlExtender PopupControlExtender1 = (PopupControlExtender)e.Item.FindControl("PopupControlExtender1");
Panel pnlPopUp = (Panel)e.Item.FindControl("pnlPopUp");
if (PopupControlExtender1 != null && pnlPopUp != null)
PopupControlExtender1.PopupControlID = pnlPopUp.ID;
}
}
}
Thanks
Esther