Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use the TabContainer control inside a templated FormView?
    text
    copied!<p>Is it possible to use a TabContainer inside a templated FormView like so: </p> <pre><code> &lt;ItemTemplate&gt; &lt;cc1:TabContainer ID="TabContainer1" runat="server"&gt; &lt;cc1:TabPanel ID="Tab1" runat="server"&gt; &lt;HeaderTemplate&gt;Tab One&lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; ... bound fields &lt;/ContentTemplate&gt; &lt;/cc1:TabPanel&gt; &lt;cc1:TabPanel ID="Tab2" runat="server"&gt; &lt;HeaderTemplate&gt;Tab 2&lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; ... bound fields &lt;/ContentTemplate&gt; &lt;/cc1:TabPanel&gt; &lt;/cc1:TabContainer&gt; &lt;/ItemTemplate&gt; &lt;EditTemplate&gt; &lt;cc1:TabContainer ID="TabContainer1" runat="server"&gt; &lt;cc1:TabPanel ID="Tab1" runat="server"&gt; &lt;HeaderTemplate&gt;Tab One&lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; ... bound fields &lt;/ContentTemplate&gt; &lt;/cc1:TabPanel&gt; &lt;cc1:TabPanel ID="Tab2" runat="server"&gt; &lt;HeaderTemplate&gt;Tab 2&lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; ... bound fields &lt;/ContentTemplate&gt; &lt;/cc1:TabPanel&gt; &lt;/cc1:TabContainer&gt; &lt;/EditTemplate&gt; </code></pre> <p> </p> <p>Everything works fine for only one template view at a time; for example if ItemTemplate works then EditTemplate won't. ASP.NET will complain about duplicate bound field IDs.</p> <p>Has anybody tried doing what I'm trying to do?</p> <p>Thanks.- Gene</p> <p>EDIT :</p> <p><em>I don't think the tab containers with the same IDs is the issue here since they are both inside separate Template elements and only one Template gets rendered at a time.</em></p> <p>UPDATE:</p> <p><em>I didn't manage to find a solution, and I think it's not possible. So, just moved on and use unique IDs. Being lazy, I wrote some code to automate the dreaded naming process. I hope someone out there has a better answer to share. Anyway, I'm too poor to afford to put a bounty on it.</em> ;-)</p>
 

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