In an earlier thread, Ivan wrote:
"You can create a new ControlTemplate for DataFormValidationSummary and set it through RadDataForm's ValidationSummaryStyle property. In this ControlTemplate you can set a new ItemTemplate to the ItemsControl placed in the summary. Please, use the latest internal build, if possible, as we have fixed a related issue there."
I'm trying to do this, but I'm only about half-way there.
I'm setting ValidationSummaryStyle on the RadDataForm:
And in Resources I'm defining the style that sets DataFormValidationSummary.Template, and the ControlTemplate that it is being set to.
And this works, so far is it goes. I see the string "Foo" in the appropriate spot.
But I'm unclear as to what "set a new ItemTemplate to the ItemsControl placed in the summary" is supposed to mean.
"You can create a new ControlTemplate for DataFormValidationSummary and set it through RadDataForm's ValidationSummaryStyle property. In this ControlTemplate you can set a new ItemTemplate to the ItemsControl placed in the summary. Please, use the latest internal build, if possible, as we have fixed a related issue there."
I'm trying to do this, but I'm only about half-way there.
I'm setting ValidationSummaryStyle on the RadDataForm:
<
telerik:RadDataForm
...
ValidationSummaryStyle
=
"{StaticResource validationSummaryStyle}"
/>
<
UserControl.Resources
>
<
ControlTemplate
x:Key
=
"validationSummaryTemplate"
>
<
Label
>Foo</
Label
>
</
ControlTemplate
>
<
Style
TargetType
=
"telerikDataForm:DataFormValidationSummary"
x:Key
=
"validationSummaryStyle"
>
<
Setter
Property
=
"Template"
Value
=
"{StaticResource validationSummaryTemplate}"
/>
</
Style
>
</
UserControl.Resources
>
But I'm unclear as to what "set a new ItemTemplate to the ItemsControl placed in the summary" is supposed to mean.