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

Iframe reloads on tabpage when reordering

1 Answer 195 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
László
Top achievements
Rank 1
László asked on 23 Jul 2014, 10:16 AM
Hello,
I'm using tabstrip with tab sorting funcionalty described here:
http://demos.telerik.com/kendo-ui/web/sortable/integration-tabstrip.html

On the tab pages I have iframes which load external content, see the example below:
http://jsfiddle.net/nwDga/

The problem is when I reorder the tab pages the iframe reloads it's content. In the iframe there can be form inputs which can contain unsaved user data which is lost after reordering the tabs.

The problem is caused by the insertAfter/insertBefore calls. They removes the k-content div from the dom and inserts again. Probably it forces the browser to reload the iframe.

Do you know any solution or workfaround to not to reload the iframe?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 25 Jul 2014, 06:25 AM
Hi László,

your guess is correct - the low level appendChild DOM function (which is underlying the insertBefore/insertAfter methods) is the culprit. I am afraid that at this point we have not discovered any means to persist the iframe state. By the way, the same issue occurs when select elements are moved around. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TabStrip
Asked by
László
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or