Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6601603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:46:31+00:00 2026-05-25T18:46:31+00:00

I found this example: <telerik:RadDatePicker ID=RadDatePicker1 runat=server> <DateInput Width=100%></DateInput> <Calendar CellAlign=Center CellVAlign=Middle DayNameFormat=FirstLetter FirstDayOfWeek=Default

  • 0

I found this example:

<telerik:RadDatePicker
 ID="RadDatePicker1"
 runat="server">
 <DateInput Width="100%"></DateInput>
 <Calendar
     CellAlign="Center"
     CellVAlign="Middle"
     DayNameFormat="FirstLetter"
     FirstDayOfWeek="Default"
     MonthLayout="Layout_7columns_x_6rows"
     Orientation="RenderInRows"
     TitleAlign="Center"
     UseColumnHeadersAsSelectors="False"
     ShowRowHeaders="False">
</Calendar>
<DatePopupButton 
     CssClass="radPopupImage_Default" 
     BorderColor="#D0E1F2" 
     BorderStyle="Solid" 
     BorderWidth="1px" />

My assumption is that inside the RadDatePicker there is a DateInput object, Calendar Object and DatePopupButton object.

I would like to have my own custom control that allows access to an inner object e.g.

    <jonno:textbox id="txt1" runat="server"><FieldConfig fieldName="Input1"/></jonno:textbox>

Ideally I don’t want the FieldConfig class to be a visual class but it’s ok if it is.

How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:46:32+00:00Added an answer on May 25, 2026 at 6:46 pm

    The embedded custom tags are properties of your control. To enable setting them in markup, you need to decorate your control and properties with the following attributes:

    • Control: ParseChilden, PersistChildren
    • Properties: PersistenceMode

    Example from a control I use that does something similar:

    /// <summary>
    /// Control that will conditionally show one of two views
    /// </summary>
    [ParseChildren(true)]
    [PersistChildren(true)]
    public class EditingView : CompositeControl
    {
        #region private fields
    
        private View _displayView = new View();
        private View _editView = new View();
    
        #endregion
        #region properties
    
        /// <summary>
        /// The view that will be rendered in display mode
        /// </summary>
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public View DisplayView
        {
            get
            {
                return _displayView;
            }
            set
            {
                _displayView = value;
            }
        }
    
        /// <summary>
        /// The view that will be rendered in editing mode
        /// </summary>
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public View EditView
        {
            get
            {
                return _editView;
            }
            set
            {
                _editView = value;
            }
        }
        /* Implementation details hidden */
    }
    

    Look the attributes up on msdn to read up on what they do exactly. The above should do what you need it to do though.
    In markup I can then simply assign the two views:

    <ctl:EditingView runat="server">
    <DisplayView>
        blah blah
    </DisplayView>
    <EditView>
        blah blah edit
    </EditView>
    </ctl:EditingView>
    

    THe only difference is that my properties are still WebControls and take more child controls. It shouldn´t matter though, as long as you set your attributes right.

    Menno

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using this example implementation found at http://tangentsoft.net/wskfaq/examples/basics/select-server.html This is doing most of what
I found this example and used it How do you resize a Bitmap under
I found this example in the App Engine documentation . 1 <% 2 UserService
I found this command line search and replace example: find . -type f -print0
So I found this: http://tiles.apache.org/framework/tutorial/advanced/nesting-extending.html Here is the example: <definition name=myapp.homepage template=/layouts/classic.jsp> <put-attribute name=title
I found this example code and I tried to google what (int (*)[])var1 could
I found this example PHP source code at HTTP POST from PHP, without cURL
I've found this cool example of border-color 's transparent property usage to make an
I found this example where they used PowerMock and EasyMock to stub/mock the Menu
I found this example: echo -e This is red->\e[00;31mRED\e[00m It works if execute direct,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.