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

Load On Demand

1 Answer 42 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 03 Sep 2011, 10:26 AM
I'm having a problem implementing Load On Demand for TabStrip. I've implemented everything on the demo page but when I run my code I'm getting an error in the code behind on the function:

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
    AddPageView(e.Tab.Text);
    e.Tab.PageView.Selected = true;
}

The error is "Multiple controls with the same ID 'Subdomains' were found. FindControl requires that controls have unique IDs.". Basically when the page loads first and you click on the tabs everything is great and working but if you re-click a tab that you already have clicked then you get this error. It's almost like the JS code below isn't running and yes my RadTabStrip is calling OnClientTabSelecting="onTabSelecting".

<script type="text/javascript">
function onTabSelecting(sender, args)
{
    if (args.get_tab().get_pageViewID())
    {
        args.get_tab().set_postBack(false);
    }
}
</script>

Any help would be greatly appreciated. Thanks!

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 06 Sep 2011, 01:54 PM
Hello Ryan,

Since you have opened a support ticket regarding this issue, we will continue the discussion there.

Kind regards,
Dimitar Terziev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
TabStrip
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or