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

[Solved] EditorFor inside tabstrip return undefined when tab reselected

1 Answer 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Luciano Kaesemodel
Top achievements
Rank 1
Luciano Kaesemodel asked on 18 Apr 2012, 10:20 PM
i have a tabstrip with 5 tabs, in a tab i have a editorFor.
When the tab with editor is load first time all runs well, but when other tab is sleected  and select again the tab with editor inside editor reference in dom return undefined

ex:
$("#myeditor).data("tEditor") is undefined

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 Apr 2012, 01:29 PM
Hi Luciano,

The data will be cleared if you are loading jQuery in one of the other tabs. This could happen if you are using the LoadContentFrom method to load a PartialView in which the file is included or a View with layout.
If this is not the case, please provide the code you are using or a sample project so I can check the setup.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Editor
Asked by
Luciano Kaesemodel
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or