1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / IContentControl loses content when you switch tabs

IContentControl loses content when you switch tabs

2 posts, 0 answered
  1. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    01 Mar 2010
    Link to this post
    I just implemented IContentControl in a usercontrol following this KB article: http://www.sitefinity.com/support/kb/article/sitefinity-3-x/how-to-wrap-a-generic-content-control-in-3-6-sp1.aspx

    I set all of the IContentControl members to [Browsable(false)], but when I go from the content editing tab to the advanced tab, then back to the content tab, all of my content is gone. 

    When I changed the Content member of IContentControl to be [Browsable(true)], there's a Content text box showing on the advanced page, with the HTML content in it. The content is still there when I go back to the content editing tab, but I'd prefer not to expose the Content member to the user. Is there a way around this?

    Thanks!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Mar 2010
    Link to this post
    Hello Connections Academy Developer,

    Loosing the data when switching between RadTabStrip tabs is a know issue in 3.x versions. Unfortunately  the problem will be sorted out in 4.0. You can hide your custom properties from the control designer without problems. When you inherits from a base class you have to ensure that your code is not overridden by the base.

    Regards,
    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