My use case calls for forms that may be duplicated across multiple TabStrip tabs as editors for different entities of the same type.
So tab 1 calls for Entity1 editor, tab 2 calls for Entity1 editor also.
This introduces possibility of duplicate IDs on the same page.
At the moment I have a super clunky prefix system utilizing ViewData.TemplateInfo.HtmlFieldPrefix. This is hardly intuitive nor easy to use.
One idea i had about managing this issue is to "unload" tabs as they get placed in the background. Essentially bundling up the html/data and storing it until the tab is selected again, where it'll unbundle and load into the tab.
I got as far as grabbing the contents of the tab via jQuery's .html() function, but reinserting the html doesn't do anything script-wise, i.e. no widgets are widgetizing.
Running into that, I'm not sure if there's any way to proceed with this idea.
Another idea I had is dumping the contents of a tab into an iframe. I haven't implemented anything like this yet, nor do I know if its a good idea.
Anyone else having to deal with this type of issue?
Any suggestions/comments on the ideas above?
What are your solutions?