This question is locked. New answers and comments are not allowed.
Hi,
I created a page to find out more about telerik dataform. Below is the code
When I run the application, the form is blank. If I set AutoGenerateFields to true and remove ReadOnlyTemplate, the form is still blank. The data source query is fine.
Have I missing anything in my xamle code?
Do I have to load the datasource in the Load Page in code behind?
Thanks for your help.
Kam
I created a page to find out more about telerik dataform. Below is the code
<
telerik:RadDomainDataSource
x:Name
=
"dsbijslogans"
QueryName
=
"GetSlogans"
AutoLoad
=
"True"
>
<
telerik:RadDomainDataSource.DataContext
>
<
ds:SloganServices
></
ds:SloganServices
>
</
telerik:RadDomainDataSource.DataContext
>
</
telerik:RadDomainDataSource
>
<
Border
x:Name
=
"ContentBorder"
Style
=
"{StaticResource ContentBorderStyle}"
>
<
telerik:RadDataForm
telerik:Theming.Theme
=
"Office_Blue"
AutoGenerateFields
=
"False"
ItemsSource
=
"{Binding dsbijslogans}"
Background
=
"Transparent"
Header
=
"Home Page Slogans"
Margin
=
"50"
>
<
telerik:RadDataForm.ReadOnlyTemplate
>
<
DataTemplate
>
<telerik:DataFormDataField DataMemberBinding="{Binding slogans, Mode=TwoWay}" Label="Slogans" Foreground="SlateGray"></telerik:DataFormDataField>
</
DataTemplate
>
</
telerik:RadDataForm.ReadOnlyTemplate
>
</
telerik:RadDataForm
>
</
Border
>
When I run the application, the form is blank. If I set AutoGenerateFields to true and remove ReadOnlyTemplate, the form is still blank. The data source query is fine.
Have I missing anything in my xamle code?
Do I have to load the datasource in the Load Page in code behind?
Thanks for your help.
Kam