Exception when editing SfRating in CardView control
Hi,
I'm having a CardView control with a custom item template + a custom edit template
In those template, when I'm adding a SfRating (read only in item template & modifiable in edit template), I'm having the following exception, at run time when editing:
An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationCore.dll
Additional information: The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
Edit template:
<syncfusion:CardView.EditItemTemplate>
<DataTemplate>
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rating" VerticalAlignment="Center" />
<sfInput:SfRating
Value="{Binding Rating, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ItemsCount="5"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Precision="Half"
ShowToolTip="True" />
</StackPanel>
</ListBoxItem>
</ListBox>
</DataTemplate>
</syncfusion:CardView.EditItemTemplate>
& the item template
<syncfusion:CardView.ItemTemplate>
<DataTemplate>
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rating" VerticalAlignment="Center"/>
<sfInput:SfRating
Value="{Binding Rating, Mode=OneWay}"
ItemsCount="5"
IsReadOnly="True"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Precision="Half" ShowToolTip="False" />
</StackPanel>
</ListBoxItem>
</ListBox>
</DataTemplate>
</syncfusion:CardView.ItemTemplate>
I'm having a CardView control with a custom item template + a custom edit template
In those template, when I'm adding a SfRating (read only in item template & modifiable in edit template), I'm having the following exception, at run time when editing:
An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationCore.dll
Additional information: The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
Edit template:
<syncfusion:CardView.EditItemTemplate>
<DataTemplate>
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rating" VerticalAlignment="Center" />
<sfInput:SfRating
Value="{Binding Rating, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ItemsCount="5"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Precision="Half"
ShowToolTip="True" />
</StackPanel>
</ListBoxItem>
</ListBox>
</DataTemplate>
</syncfusion:CardView.EditItemTemplate>
& the item template
<syncfusion:CardView.ItemTemplate>
<DataTemplate>
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rating" VerticalAlignment="Center"/>
<sfInput:SfRating
Value="{Binding Rating, Mode=OneWay}"
ItemsCount="5"
IsReadOnly="True"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Precision="Half" ShowToolTip="False" />
</StackPanel>
</ListBoxItem>
</ListBox>
</DataTemplate>
</syncfusion:CardView.ItemTemplate>
SIGN IN To post a reply.
1 Reply
BK
Bharadhi K
Syncfusion Team
March 2, 2015 10:26 AM UTC
Hi Tou,
We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Best,
Bharadhi K
We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Best,
Bharadhi K
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
TO tou
- Feb 27, 2015 02:45 PM UTC
- Mar 2, 2015 10:26 AM UTC