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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|