More in this section

Forums / General Discussions / Backend display of user control does not match the front end.

Backend display of user control does not match the front end.

2 posts, 0 answered
  1. Stacey
    Stacey avatar
    291 posts
    18 Oct 2012
    21 Dec 2010
    Link to this post
    I created a user control that uses a repeater to output an unordered list for use with a jQuery gallery plugin.  I am using the JavaScriptEmbedControl to add the needed jQuery scripts to the Head.  Everything works and looks fine on the front end.  When I view the page in the backend I notice that the control just renders as an unordered list and if I view the source I do not see any of the linked jQuery or Css files for that control.  I would prefer, if possible, that the control render exactly as it does on the front end.

    Any ideas on what I might be missing?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    22 Dec 2010
    Link to this post
    Hi Stacey,

    JavaScriptEmbedControl does not render any scripts when you are in edit mode. The reason behind this is that when you open a page for editing and drop a control on it, you cannot change the head tag of a page.Basically you need to refresh the entire page so you will get the script loaded on it.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered