Edit this page

Customizing Appearance

You can access and modify the style for different elements in RadDataEntry by using the Element Hierarchy Editor.

Figure 1: Element Hierarchy Editor

datalayout-customizing-appearance001

Changing the styles of the underling items and controls

The following snippet shows how you access the underlying controls and change their style:

foreach (DataLayoutControlItem item in radDataLayout1.LayoutControl.Items)
{
    item.ForeColor = ColorTranslator.FromHtml("#51ab2e");
    if (item.AssociatedControl is RadTextBox)
    {
        item.AssociatedControl.BackColor = ColorTranslator.FromHtml("#91c930");
    }
}

For Each item As DataLayoutControlItem In RadDataLayout1.LayoutControl.Items
    item.ForeColor = ColorTranslator.FromHtml("#51ab2e")
    If TypeOf item.AssociatedControl Is RadTextBox Then
        item.AssociatedControl.BackColor = ColorTranslator.FromHtml("#91c930")
    End If
Next item

Figure 2: Change the items styles

datalayout-customizing-appearance002

See Also

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy