Answered by:
Modal popup with Repeater control Issue

Question
-
User-1004789691 posted
So i have a panel with a repeater in it. The panel is the targetcontrolID and if i just put plain text in it( I.E. Testing 1 2 3) that shows up when i do MPE.show However the repeater does not. Any suggestions? The popup is "poping-up" when you click a link in a datagrid and that functionality is fine.
I have included my code below tto help you see the problem:
ASPX:
<Ajax:ModalPopupExtender ID="mpeOrderPopup" runat="server" DropShadow="true" TargetControlID="cmdDetail"
PopupControlID="OrderDetails" BackgroundCssClass="modalBackground" RepositionMode="None" Y="0" X="250" />
<asp:Button ID="cmdDetail" runat="server" style="display:none;" />
<asp:Panel ID="OrderDetails" runat="server" Style=" width: 475px;"
CssClass="modalPopup">
Testing 1 2 3
<asp:Repeater ID="OrderItems" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<p>
<asp:Label ID="lblLawsonNum" runat="server">Item #:</asp:Label>
<asp:Label ID="lblLawson" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Num")%>'></asp:Label>
</p>
<p>
<asp:Label ID="lblQuanitiy" runat="server">Quantity Requested:</asp:Label>
<asp:Label ID="lblQuantityRequested" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Quantity")%>'></asp:Label>
</p>
<p>
<asp:Label ID="lblDecription" runat="server">Item Description:</asp:Label>
<asp:Label ID="lblItem" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Description")%>'></asp:Label>
</p>
</ItemTemplate>
<SeparatorTemplate>
------------------------------------------------------
</SeparatorTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:Repeater>
</asp:Panel>
Tuesday, September 8, 2009 12:56 PM
Answers
-
User1335925338 posted
Hi Ucf_Falcon,
Actually, I cannot find any clue from your code because it works well locally. How did you bind the Repeater? Try to place the DataSource into the Panel and bind it from the beginning.
Here are my samples about using the GridView inside the Modal:
http://forums.asp.net/t/1248060.aspx
http://forums.asp.net/p/1249173/2312275.aspx#2312275
http://forums.asp.net/p/1260529/2365641.aspx#2365641
http://forums.asp.net/p/1263128/2375935.aspx#2375935
http://forums.asp.net/p/1270002/2410443.aspx#2410443Best regards,
Zhi-Qiang Ni
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 14, 2009 3:27 AM -
User-1004789691 posted
I did get it to work, it turns out my update panel placement was in correct. I appreciate the help!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 14, 2009 8:14 AM
All replies
-
User-1767134001 posted
Hello
Make sure your databind is returning any data. If it returns nothing, then the repeater will not shown up.
Tuesday, September 8, 2009 5:35 PM -
User-1004789691 posted
It is definately displaying data when i let it display on the form without a Modal popup it displays as i would like it... for some reason i just doesnt display in the panel than i am "extending"... Any other ideas?
Tuesday, September 8, 2009 6:43 PM -
User-1004789691 posted
Does anyone have any ideas why this would be happening? I suspect it has something to do with the was a repeater is rendered at run time.
Wednesday, September 9, 2009 8:25 AM -
User1335925338 posted
Hi Ucf_Falcon,
Actually, I cannot find any clue from your code because it works well locally. How did you bind the Repeater? Try to place the DataSource into the Panel and bind it from the beginning.
Here are my samples about using the GridView inside the Modal:
http://forums.asp.net/t/1248060.aspx
http://forums.asp.net/p/1249173/2312275.aspx#2312275
http://forums.asp.net/p/1260529/2365641.aspx#2365641
http://forums.asp.net/p/1263128/2375935.aspx#2375935
http://forums.asp.net/p/1270002/2410443.aspx#2410443Best regards,
Zhi-Qiang Ni
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 14, 2009 3:27 AM -
User-1004789691 posted
I did get it to work, it turns out my update panel placement was in correct. I appreciate the help!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 14, 2009 8:14 AM