Modal popup extender within gridview inside updatepanel

Posted by Vijayenderpailla under ASP.NET on 4/11/2012 | Points: 10 | Views : 7222 | Status : [Member] | Replies : 3
Hi Experts,

I have a situation where i have a grid inside update panel. In template field of my grid i have a modal popup extender control.PopcontrolID for this extender is a panel which is having a usercontrol. Till here everything is fine, when i am running the app, popup extender is opening in grid's column (height and width is as grid column i.e. not as i intended)with having updatepanel,when i removed the updatepanel, popup extender working fine.In my form i have lot of tabs. without update panel when i select other tabs it is posting back which i dont want.Is there any way i can stop the postback. i am placing the peice of code here.
Thanks in advance


<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
<asp:GridView ID="GV_PCR" runat="server" class="GridView" cellpadding="0"
AllowPaging ="True" AllowSorting ="True"
PageSize="<%$ appSettings:Gridpagesize %>"
AutoGenerateColumns="False"
Width="100%" onrowcreated="GV_PCR_RowCreated"
onsorting="GV_PCR_Sorting" OnSelectedIndexChanged="GV_PCR_SelectedIndexChanged"
onpageindexchanging="GV_PCR_PageIndexChanging" OnRowEditing="GV_PCR_RowEditing" OnRowCommand="GV_PCR_RowCommand">
<Columns>
<asp:TemplateField HeaderText="Actions">
<ItemTemplate>

<asp:LinkButton ID="lnk_Invoice" runat="server" CommandName="EditPCR" Text="Authorized/Unauthorized"></asp:LinkButton>

<asp:ModalPopupExtender ID="ModalPopupPCR" runat="server"
TargetControlID="lnk_Invoice"
PopupControlID="pnlPopup"
BackgroundCssClass="modalBackground"
DynamicServicePath="">
</asp:ModalPopupExtender>

<asp:Panel ID="pnlPopup" runat="server" style="display: none">
<ucnew:uc2 ID="Ucl_Autherized" runat="server" />
</asp:Panel>

</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="GridViewHeader" />
<RowStyle CssClass="GridViewRow td" />
</asp:GridView>
</ContentTemplate>
</UpdatePanel>




Responses

Posted by: Hariinakoti on: 4/11/2012 [Member] Starter | Points: 25

Up
0
Down
hi Vijayendar,
Can u redesign ur form definitely solve ur problem.Don't drag and drop in design time u can use source code.
It'll help to u..

Thanks&Regards
Hari

Thanks & Regards
Hari

Vijayenderpailla, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayenderpailla on: 4/11/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks Hari for the reply,
But I didn't get you
could you please write it again

Vijayenderpailla, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajni.Shekhar on: 4/11/2012 [Member] Bronze | Points: 25

Up
0
Down
do onething, in user control use update panel there, may be it will work then.
Or if your want to remove update panel. Do write code in javascript for tabbing.

Thanks,
Rajni Shekhar

Vijayenderpailla, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response