- Home
- Forum
- Xamarin.Android
- SfDataGrid and ScrollView
SfDataGrid and ScrollView
Greetings
In a Xamarin.Android project, it would be desirable to use SfDataGrid in conjunction with SfChart in which both components are contained in a ScrollView control. This is done in order to allow the user to either have the chart or grid occupy the most space on the screen. Here is the XML for such a setup:
<ScrollView
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:id="@+id/middleFrameLayout"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottomFrameLayout"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
Each FrameLayout will host a Fragment that will either contain the grid or the chart. It appears that sfDataGrid is intercepting the scroll gestures and in turn does not allow the ScrollView to perform its operation. I have set sfDataGrid's 'NestedScrollingEnabled' to true but it does not have any effect.
Please advise.
Thanks in advance.
In a Xamarin.Android project, it would be desirable to use SfDataGrid in conjunction with SfChart in which both components are contained in a ScrollView control. This is done in order to allow the user to either have the chart or grid occupy the most space on the screen. Here is the XML for such a setup:
<ScrollView
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:id="@+id/middleFrameLayout"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottomFrameLayout"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
Each FrameLayout will host a Fragment that will either contain the grid or the chart. It appears that sfDataGrid is intercepting the scroll gestures and in turn does not allow the ScrollView to perform its operation. I have set sfDataGrid's 'NestedScrollingEnabled' to true but it does not have any effect.
Please advise.
Thanks in advance.
SIGN IN To post a reply.
4 Replies
VI
Vince
January 23, 2018 11:02 AM UTC
Hi svrz
I have the same problem. Hope that Syncfusion has an idea how to solve it.
SS
Sivaraman Sivagurunathan
Syncfusion Team
January 25, 2018 03:43 AM UTC
Hi Svrz,
Thanks for using Syncfusion support.
We are able to reproduce the reported issue and this is a defect. We have logged a defect report for the same. The fix will be available in any of our upcoming release.
Regards,
Sivaraman
SV
svrz
January 25, 2018 06:43 AM UTC
Greetings Sivaraman
Thank you very much for your prompt reply and attention to this matter. I eagerly look forward to the next release of SfDataGrid.
Take care
Thank you very much for your prompt reply and attention to this matter. I eagerly look forward to the next release of SfDataGrid.
Take care
SK
Shivagurunathan Kamalakannan
Syncfusion Team
January 26, 2018 07:04 AM UTC
Hi Svrz,
Thanks for the update.
Please let us know, If you require for further assistance.
Regards,
Shivagurunathan. K
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
SV svrz
- Jan 23, 2018 06:28 AM UTC
- Jan 26, 2018 07:04 AM UTC