When adding a new DataFormComboBoxField
to my DataForm i get an error:
This is in my ReadOnlyTemplate
I have the same element in my EditTemplate
The app works just fine but i cannot see the design as long as the elements is in there.
Here is the code:
it's the last element in the list.
to my DataForm i get an error:
System.InvalidOperationException
Layout measurement override of element 'Microsoft.Windows.Design.Platform.SilverlightViewProducer+SilverlightContentHost' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.
This is in my ReadOnlyTemplate
I have the same element in my EditTemplate
The app works just fine but i cannot see the design as long as the elements is in there.
Here is the code:
<
telerik:RadDataForm.ReadOnlyTemplate
>
<
DataTemplate
>
<
StackPanel
>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Details.Name,Mode=OneTime}"
Label
=
"Client Name:"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Details.Description,Mode=OneTime}"
Label
=
"Description:"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding WebSite,Mode=OneTime}"
Label
=
"Web Site:"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Details.Notes,Mode=OneTime}"
Label
=
"Notes:"
IsEnabled
=
"False"
/>
<
telerik:DataFormComboBoxField
DataMemberBinding
=
"{Binding VisibilityTypeId,Mode=TwoWay}"
Label
=
"Visibility:"
DisplayMemberPath
=
"Name"
SelectedValuePath
=
"Id"
ItemsSource
=
"{Binding Source={StaticResource Clients_VM}, Path=VisibilityTypes}"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Core.StateFlag,Mode=OneTime}"
Label
=
"State Flag:"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Core.Position,Mode=OneTime}"
Label
=
"Position:"
IsEnabled
=
"False"
/>
<
telerik:DataFormComboBoxField
DataMemberBinding
=
"{Binding UserId,Mode=TwoWay}"
Label
=
"Owner:"
DisplayMemberPath
=
"UserGuid"
SelectedValuePath
=
"Id"
ItemsSource
=
"{Binding Source={StaticResource Clients_VM}, Path=Users}"
IsEnabled
=
"False"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadDataForm.ReadOnlyTemplate
>
it's the last element in the list.