This is a migrated thread and some comments may be shown as answers.

ajax Popup Extender is not displayed in postback

0 Answers 67 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Esther Nirmala
Top achievements
Rank 1
Esther Nirmala asked on 26 Sep 2011, 08:07 AM
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?

    
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

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Esther Nirmala
Top achievements
Rank 1
Share this question
or