Note that there are some explanatory texts on larger screens.

plurals
  1. POJuice UI Child Controls
    primarykey
    data
    text
    <p>I'm trying to use container controls from the JuiceUI. So far I've played around with the <a href="http://juiceui.com/controls/accordion" rel="nofollow">accordion</a> and <a href="http://juiceui.com/controls/tabs" rel="nofollow">tabs</a>. They're great controls, but I've having issues updating child controls within these control's "content" tags.</p> <p>For the accordion, there's a PanelContent tag and for the tabs, there's a TabContent tag, but to make things simpler, we'll focus on the accordion.</p> <p>Inside of the PanelContent, I have a label. I need to update this label with some info. Since I couldn't access the control directly, I tried casting the control from FindControl on the accordion itself. A NullReferenceException occurred. I also tried the same on the AccordionPanel and the same thing occurred. All of that makes sense.</p> <p>On VBF, a member pointed out that the label was a child of the PanelContent. It doesn't have an ID property, so I couldn't directly access from the server side code. So I tried accessing it from the AccordionPanel. I could, but didn't have a FindControl method.</p> <p>So with that, I'm not sure how to access that label from within that PanelContent tag.</p> <p>Though, when I pull up the PanelContent property from the AccordionPanel, it has one method called InstantiateIn. It's intellisense description is below:</p> <blockquote> <p>Public Sub InstantiateIn(container As System.Web.UI.Control) When implemented by a class, defines the System.Web.UI.Control object that child controls and templates belong to. These child controls are in turn defined within an inline template.</p> </blockquote> <p>That <em>sounds</em> like what I need. But I'm not quite sure how to use it. The JuiceUI documentation doesn't seem complete, because I couldn't find anything on there about this.</p> <p>Any ideas, guys?</p> <p>Client Side:</p> <pre><code>&lt;asp:UpdatePanel runat="server"&gt; &lt;ContentTemplate&gt; &lt;table style="width: 99%;"&gt; &lt;tr&gt; &lt;td class="style1"&gt; &lt;asp:Label ID="Label1" runat="server" Text="CSO:"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="txtCSONumber" runat="server" CssClass="UpperCase" Width="115px"&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="style1"&gt; &amp;nbsp; &lt;/td&gt; &lt;td&gt; &lt;asp:Button ID="btnRetrieve" runat="server" Height="22px" Text="Retrieve" Width="120px" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="style1"&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:Label ID="lblMessage" runat="server" ForeColor="Red" Text="N/A" Visible="False"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;juice:Accordion ID="accSwrlHddRepl" runat="server"&gt; &lt;juice:AccordionPanel runat="server" Title="HDD Information" ID="pnlHddInfo"&gt; &lt;PanelContent&gt; &lt;p&gt; &lt;asp:Label ID="lblOriginalHDD" runat="server" Text="N/A"&gt;&lt;/asp:Label&gt; &lt;/p&gt; &lt;/PanelContent&gt; &lt;/juice:AccordionPanel&gt; &lt;/juice:Accordion&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload