More in this section

Forums / Developing with Sitefinity / Nested control in widget

Nested control in widget

1 posts, 0 answered
  1. Max
    Max avatar
    3 posts
    28 Nov 2013
    18 Feb 2014
    Link to this post
    I have a user control inside it I want to add one more. Both have a standard control's designer
    When editing the widget I see an extra tab for the  nested control, but entered ​​it to the data is not saved
     My code
    public partial class CtrlWithNestedWidget : System.Web.UI.UserControl {
        public string Heading { get; set; }
        public string SubHeading { get; set; }
        public NestedCtrl NestedWidget { get { return this.NestedCtrl; } }
    Code in NestedCtrl widget

    public class NestedCtrl : UserControl
           public string TextToShare_One { get; set; }
           public string TextToShare_Two { get; set; }
           public string TextToShare_Three { get; set; }

    What am I doing wrong? I will clarify, I do not want to write a custom design for editing widget

1 posts, 0 answered