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

Need to display some content same on both tabs

1 Answer 34 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 26 Feb 2011, 09:07 AM
Hi,

I have a requirement wherein I have two subtabs 'A' and 'B'. Both the subtabs have html with primarily two sections.
<RadPageView ID='pg1' runat='server'>
<table id='table1'>
  <tr>
    <td>
       Represents the common section.
   </td>
 </tr>
</table>
<table id='table2'>
  <tr>
    <td>
       The differening section of first subtab.
   </td>
 </tr>
</table>
</RadPageView>
<RadPageView ID='pg2' runat='server'>
<table id='table1'>
  <tr>
    <td>
       Represents the common section.
   </td>
 </tr>
</table>
<table id='table3'>
  <tr>
    <td>
       The differening section of second subtab.
   </td>
 </tr>
</table>
</RadPageView>
 As shown in the above code, I need table1 to be automatically present across both subtabs. Clicking on the subtabs should only change the lower half section(in this case from showing table2 to table3 and vice-versa).


Thanks In advance.

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 02 Mar 2011, 04:36 PM
Hello David,

One way to achieve this is to put the common section into a user control and then add it dynamically to the page. You could also use RadMultiPage control.

All the best,
Kate
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TabStrip
Asked by
Dennis
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or