We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exception when editing SfRating in CardView control

Thread ID:

Created:

Updated:

Platform:

Replies:

118344 Feb 27,2015 02:45 PM UTC Mar 2,2015 10:26 AM UTC WPF 1
loading
Tags: SfRating
tou
Asked On February 27, 2015 02:45 PM UTC

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>

Bharadhi K [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;