- Home
- Forum
- Xamarin.Android
- Tooltip
Tooltip
Hy,
I want to add a tooltip when a user is clicking on a value from a specific cell. Is there a way to implement this?
Thank you,
SIGN IN To post a reply.
3 Replies
JA
Jayaraman Ayyanar
Syncfusion Team
March 14, 2018 01:46 PM UTC
Hi Patrick,
Thanks for contacting Syncfusion support.
We have checked your query. Your requirement can be achieved by using the DataGrid_GridTapped or SfPopupLayout control which newly lauched from this release. You could achieve the popup when tapping the gridcell. As of now you can use these work around. We have also added it to our feature request list.
We have prepared two sample based on your requirement one with the tooltip when tapping the grid and another popup will show in the tapping action and you can download the same from the below link :
Regards,
Jayaraman.
PG
Patrick Geuvens
March 22, 2018 01:15 PM UTC
Hy,
Thank you for the answer. Right now I have a problem using the SFPopupLayout on Android. When a click on a cell and the tooltip is showing I get the following warning: horizontal/vertical constraints: x1-x0>=58, x2-x1>=125, x2-x0<=157 are inconsistent; permanently removing: x2-x0<=157 and the data grid is going fullscreeen. Do you have any idea why this is happening?
Thank you!
SS
Suhasini Suresh
Syncfusion Team
March 26, 2018 06:39 AM UTC
Hi Patrick,
Thanks for your update.
We assume that you are trying to show the popup in datagrid in xml file. We prepared a sample to achieve your requirement. We are not clear for which view you are setting the horizontal and vertical constraint, so please provide us the clear details on it. Provide us with the clear replication procedure to reproduce the issue and how you are using the SfPopupLayout and SfDataGrid in your sample or modify the sample attached to replicate the issue, so that we can provide you the solution fast.
Please find the sample link below.
Sample Link: http://www.syncfusion.com/downloads/support/forum/136373/ze/ContextMenuInAndroid1419545383
For your information, SfPopupLayout should not be directly added to any views or layouts, so you should not set horizontal and vertical constraint for it. SfPopupLayout can be used in two types:
- Type A : Set SfPopupLayout as the root view of the activity and call the SfPopupLayout.Show() method to display the popup.
- Type B : Set any view as the root view of the activity and pass the root view, when calling SfPopupLayout.Show(rootView) to display the popup.
Please refer the below UG link for documentation of SfPopupLayout, where you can find the clear details on how to use the popup.
In the attached sample, popup is displayed in Type – B.
Regards,
Suhasini
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
PG Patrick Geuvens
- Mar 12, 2018 10:05 AM UTC
- Mar 26, 2018 06:39 AM UTC