Welcome Guest Search | Active Topics | Sign In | Register

MaskedEdit Binding Options
exorgroup
Posted: Monday, December 24, 2007 12:45:34 PM
Rank: Member
Groups: Member

Joined: 12/18/2007
Posts: 20
How can maskededit can be bound to database field? I am aware of the .text property but this is not available in the menu option or in the properties panel

Any comments appreciated - Thank you
eo_support
Posted: Monday, December 24, 2007 1:22:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can still bind to Text with code. For example:

Code: HTML/ASPX
<asp:Repeater runat="server" id="Repeater1">
    <ItemTemplate>
        <eo:MaskedEdit id="MaskedEdit1" 
            runat="server" Text="<%# Container.DataItem.ToString() %>">
            <eo:MaskedEditSegment Mask="9" SegmentType="Mask">
            </eo:MaskedEditSegment>
        </eo:MaskedEdit>
    </ItemTemplate>
</asp:Repeater>


Code: C#
Repeater1.DataSource = new string[]{"1", "2", "3"};
Repeater1.DataBind();


Note the data binding expression for the Text property.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.