More in this section

Forums / Developing with Sitefinity / Creating Generic Content Controls

Creating Generic Content Controls

2 posts, 0 answered
  1. S. Webb
    S. Webb avatar
    36 posts
    28 Dec 2006
    17 Sep 2010
    Link to this post

    I created a control that incorporates 2 generic content controls that use HtmlContentEditor WebEditor to populate both of them. The problem with this is that the client wants to select and edit shared content and of course this does not work because I'm not wrapping the control with IGenericContent.

    Now I can do this, wrap the control with IGenericContent for one of the generic content controls in the user control but can I do it with both and how would I go about doing this?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    17 Sep 2010
    Link to this post
    Hello S. Webb,

    HtmlContentEditor is obsolete and you should use wrapper for GenericContent if you use Sitefinity 3. 6 or 3.7 editions or WebUIEditor that wraps RadEditor ( this is an example with RadTreeView)

    IGenericContent is generally used when you use a user control, but GenericContent control does not work properly as a user control and the solution is a wrapper for GenericContent

    Let me know if there are further question.

    Sincerely yours,
    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