More in this section
Forums / Developing with Sitefinity / Events Custom Field/Custom Interface Widget

Events Custom Field/Custom Interface Widget

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. LBrinley
    LBrinley avatar
    59 posts
    29 Dec 2005
    30 Mar 2012
    Link to this post
    I'm trying to use a TextField as part of a 'Custom Interface Widget' for a custom field for the Events Module.  The 'Custom Interface Widget' class inherits from CompositeFieldControl, because of what little I've found on this site relevant to this attempt.  Unfortunately, no matter what I try, I can't get the TextField to bind to it's database field.

    The relevant portion of the layout template, which is an EmbeddedResource, follows:
    <sf:SitefinityLabel ID="titleLabel" runat="server" WrapperTagName="div" HideIfNoText="false" CssClass="sfTxtLbl" />
        <sitefinity:TextField ID="someID" runat="server" DataFieldName="some_field" DataItemType="Telerik.Sitefinity.Events.Model.Event" DisplayMode="Write" Rows="3" Width="100%" WrapperTag="Div" />
        <div style="text-align: right; margin: 5px 0;"><asp:LinkButton ID="openSelector" runat="server" OnClientClick="return false;" CssClass="sfLinkBtn sfChange">
            <strong class="sfLinkBtnIn"><asp:Literal runat="server" ID="openSelectorLabel" Text="Open Window" /></strong>

    Bear in mind, the TextField renders and ALL other functions of the 'Custom Interface Widget' work perfectly--no error of any kind is thrown.  The TextField simply is NOT bound.  Have I got the wrong DataItemType?  Any assistance would be appreciated. I've been banging my head against this problem for almost two days.
1 posts, 0 answered