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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Pie Chart cancels other touch gesture

Thread ID:

Created:

Updated:

Platform:

Replies:

121665 Jan 14,2016 03:10 PM UTC May 27,2016 10:42 AM UTC Xamarin.Forms 8
loading
Tags: SfChart
Giorgos Papadakis
Asked On January 14, 2016 03:10 PM UTC

Hi,

Just trying the new version 13.4.0.53 and noticed that a scrollview that i have with several pie charts in it doesn't accepts touch gesture for scrolling the view.
Maybe it is has something to do with touchexplode but i setted to ExplodeOnTouch = false.

Please help

Karthikeyan V [Syncfusion]
Replied On January 15, 2016 01:54 PM UTC

Hi Giorgos,


Thanks for using Syncfusion products.


We are able to achieve your requirement by workaround using CustomRenderer for iOS.


We have prepared a sample based on your requirement. Please download from the following location


Sample: http://www.syncfusion.com/downloads/support/forum/121665/ze/ScrollViewWithExplodeOnTouch1345871873

Regards,
Karthikeyan V.


Giorgos Papadakis
Replied On January 19, 2016 09:44 AM UTC

Thanks but could you provide some sample code for Androind. Also is this a bug, something to be fixed?

Manivannan Elangovan [Syncfusion]
Replied On January 20, 2016 12:53 PM UTC

Hi Giorgos,

For Android there is no specific code need to be done. Please check with sample provided in the last update.

The scenario discussed in the previous update is not an issue. Xamarin forms have some limitations for ScrollViews. ScrollViews should not be nested with other controls that provide scrolling, like ListView and WebView. Please refer the below link.

https://developer.xamarin.com/guides/xamarin-forms/user-interface/layouts/scroll-view/#Usage

Similary, we have some limitation in handling the touch gestures in SFChart Xamarin Forms iOS.

Regards,
Manivannan.E

Giorgos Papadakis
Replied On January 20, 2016 01:42 PM UTC

Ok thanks but i am a little bit confused.
Last start from the hierachy of my controls.

I have a page with a nested tabcontrol.
The tabcontrol has nested scrollviews in every tab.
Every scroll views has pie charts stacked.

Till previous version everything was working just fine. Swipe between tabs over the pie charts, scrolling int the tabs.
After i updated to version 13.4.0.53 gesture events(swipe,scroll) didn't work over the charts.
I do not want to handle any events for the chart control.
Currently i am testing the Xamarin Forms app only for Android

Giorgos Papadakis
Replied On January 20, 2016 02:10 PM UTC

Ok just figured out, my mistake i had the following declared

chart.ChartBehaviors.Add(new ChartZoomPanBehavior()
            {
                ZoomMode = ZoomMode.XY
            });

So chart was catching any touch events. I removed it and now is working.

Sorry for the misleading info

Manivannan Elangovan [Syncfusion]
Replied On January 21, 2016 04:50 AM UTC

Hi Giorgos

Thanks for the update.

Please let us know if you have any other queries.

Regards,
Manivannan.E

dang
Replied On May 26, 2016 09:03 AM UTC

Hi,

I have the same kind of issue but this time it is with the data selection.  When i set the dataSelection to true, the scroll does not work any more. I have no particular beahviors  except that i have a complementary code for the SelectionChanged event.
Any suggestions how can i achieve the scrolling ?
thanks

Saravana Pandian Murugan [Syncfusion]
Replied On May 27, 2016 10:42 AM UTC

Hi Giorgos,

We have prepared a workaround sample for this. In this sample, we have passed the touch move action to the parent (ScrollView) and handled the tap event in Chart to do the selection. Please download the sample from the below location.

Sample: http://www.syncfusion.com/downloads/support/forum/121665/ze/ChartSample-1942612200  

Thanks,
Saravana Pandian M.
 


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

;