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.

Essential GridDataControl - cell tooltip

Thread ID:

Created:

Updated:

Platform:

Replies:

100966 Sep 15,2011 02:45 PM Mar 5,2012 08:16 AM ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Namita Jain
Asked On September 15, 2011 02:45 PM

Hi
How can I set the ToolTip on every cell value within the WPFGridDataControl?
Would appreciate a quick response.

Thanks
-Namita




Namita Jain
Replied On September 19, 2011 02:27 PM

Any updates?


Ramesh V [Syncfusion]
Replied On September 22, 2011 02:52 AM

Hi Namita,

Thank you for your interest in syncfusion products.

Yes, you can achieve you requirement by setting the tooltip to true as like in the following code. And also you should enable the tooltip in XAML file as like in the following code.


Code Snippet [XAML]:

syncfusion:GridTooltipService.ShowTooltips="True"


Code Snippet[C#]:

void Model_QueryCellInfo(object sender, Syncfusion.Windows.Controls.Grid.GridQueryCellInfoEventArgs e)
{
var identity = ((GridDataStyleInfo)e.Style).CellIdentity;
if (identity == null || identity.Column == null)
return;
if (identity.TableCellType == GridDataTableCellType.RecordCell)
{
e.Style.ShowTooltip = true; // If we set like this by default the tooltip will show the cell values.

}
}

Also we have prepared a sample based on this and please find the sample under the following location.

Sample: http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TooltipDemo1873480342.zip

Please let us know if this helps.

Regards,
Ramesh



Selva Ram
Replied On March 3, 2012 10:59 AM

Hi,

How to set the tooltip value other than the default value cell value. Say i want to bind to 'Description' property?


Riyaj Ahamed I [Syncfusion]
Replied On March 5, 2012 08:16 AM

Hi Selva,

Thank you for your interest in syncfusion products. Yes, you can set your own tooltip value by using custom tooltip. To use the tooltip you should enable the tooltip in XAML code as follows,

Code Snippet [XAML]:
syncfusion:GridTooltipService.ShowTooltips="True"

By using QueryCellInfoCommand you can set the custom tooltip value as follows,
Code Snippet[C#]:

void QueryCellInfoEventCommandMethod(object parameter)
{
var args = parameter as GridQueryCellInfoEventArgs;
if (args != null)
{
var tableStyleIdentity = ((GridDataStyleInfo)args.Style).CellIdentity;
var identity = ((GridDataStyleInfo)args.Style).CellIdentity;
if (identity == null || identity.Column == null)
return;
if (identity.TableCellType == GridDataTableCellType.RecordCell)
{
args.Style.ShowTooltip = true;
args.Style.TooltipTemplateKey = "myTooltipTemplate";
}
}
}


Also we have prepared a sample based on this and please find the sample from attachment.

Another way is you can set the customer details to ToolTip by handling QueryCellInfo event or command.

Please let us know if this helps.

Regards,
Riyaj Ahamed I




CustomToolTip_6fb22576.zip

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.

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.

;